Document ClassesHyphenation

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
thodo_cool
Posts: 3
Joined: Thu Jul 05, 2007 1:47 pm

Hyphenation

Post by thodo_cool »

Is there anybody can help my problem :

I have a hyphenation file for Indonesian (my native) and the file still has a bug.

I need to modify the file, but I'm not sure how to do. Because the algorithm seems strange
for me. What I need is the explanation or description to the algorithm, so I can do modify the file.

I hope this community would help. Many Thanks.

(I'm a newbie in this community)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Ted
Posts: 94
Joined: Sat Jun 23, 2007 4:11 pm

Hyphenation

Post by Ted »

Is it just one or two words that are not being hyphenated correctly? Perhaps you can just specify special rules for those rules. See:

http://www-h.eng.cam.ac.uk/help/tpl/tex ... x-244.html

and

http://www-h.eng.cam.ac.uk/help/tpl/tex ... x-182.html

The first gives you the "\hyphenation{...}" macro, which lets you specify a word list with hyphenation points marked by "-". The second gives you "\-" which lets you put hyphenation points right into the words as you type them.
-- Ted [home/blog]
thodo_cool
Posts: 3
Joined: Thu Jul 05, 2007 1:47 pm

Re: Hyphenation

Post by thodo_cool »

Sorry Ted, but what I found in the hyphenation is not only \hyphenation macros, but also \pattern macros. The main point is I need the explanation or description for \pattern macros.

Please help me again..??

I need the algorithm for my thesis project.
Thank You.
Ted
Posts: 94
Joined: Sat Jun 23, 2007 4:11 pm

Hyphenation

Post by Ted »

Again, if there are only a few exceptions (i.e., only a couple of words that you have found hyphenated wrong), then you should add those exceptions using \hyphenation IN YOUR PREAMBLE. I am not recomemnding that you modify the hyphen.tex files.

I would be very surprised that there would be so many "bugs" in the hyphenation patterns for your language (you have instructed LaTeX to change to your language, right?) that you would want to modify the hyphen.tex manually. If there are only a couple of exceptions, add them to your preamble and move on. That way things are PORTABLE.

If you really really want to generate your own list of aptterns, you should consult the patgen program. You can find its manual page here.

If you really feel you need more information, start your search from patgen and work from there.
-- Ted [home/blog]
thodo_cool
Posts: 3
Joined: Thu Jul 05, 2007 1:47 pm

Re: Hyphenation

Post by thodo_cool »

Ok Ted, I'll try to follow your link.

I hope I can solve my problem.

Thank You for your help.
Post Reply