KTUGFaq

KTUG FAQ

α:
йȣ:
You have an ability to sense and know higher truth.
DVIPDFMx&value=TeXǸŷKC2006/UPDATESKarnes/2009-03&value=TeXWinEdtTip占쏙옙타占쌉글꼴삼옙占쏙옙歐占 › RubyPackage

Ϻ  ֵ ִ Ÿ
[]

\usepackage{ruby}
\renewcommand\rubysize{.5}
\renewcommand\rubysep{-2.0ex}
[]

\documentclass[12pt]{article}
\usepackage{hangul}
\usepackage{ruby}

\linespread{1.6}
\renewcommand\rubysize{.5}
\renewcommand\rubysep{-1.6ex}

\begin{document}
̰  Դϴ.
 \ruby{}{}\ruby{}{}
HanJa \ruby{}{han}\ruby{}{ja}
Kanji \ruby{}{kan}\ruby{}{ji}
\end{document}

[]

ν

[]

PC

[]

  • mpm Ͽ ٿε尡 ʴ´.
  • KTUGSetup:10157
  • ġ ٿε Ͽ ν Ѵ.
[]

Python Utility

  • Ϻ ϴٰ ruby ؼ ٲٰ ٽ Ϻ ƿ . python ũƮ '' ڸ ̿ؼ ruby ȯ κ ϰ, װ ڵ ruby{}{} ٲپִ ũƮ̴.

# -*- coding: utf-8 -*-

import string
import codecs
import re

f = codecs.open("texSource.tex",'r','utf-8','strict')
lines = map(lambda x: string.rstrip(x), f.readlines())
for line in lines:
    patt = re.compile(u'([^]+)([^]+)', re.UNICODE)
    print patt.sub(r'\\ruby{\1}{\2}', line)


  • FROM : ܡ
  • TO : \ruby{}{}

ruby ִ ƾ .
# -*- coding: utf-8 -*-

import string
import codecs
import re

f = codecs.open("colors.tex",'r','utf-8','strict')
lines = map(lambda x: string.rstrip(x), f.readlines())
for line in lines:
    if len(line) == 0 or line.startswith("\\") or line.startswith("%"):
        continue
    string1 = re.sub(ur'\\ruby{([^}]+)}{[^}]+}', r'\1', line)
    string2 = re.sub(ur'\\ruby{[^}]+}{([^}]+)}', r'\1', line)
    print "%s\n%s\n" % (string1, string2)

[]


^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-01-11 01:29:09
Processing time 0.0412 sec