Projekt

Allgemein

Profil

Page Wrap and Hyphenation » Historie » Version 7

Martin Kraetke, 17.04.2024 17:05

1 6 Martin Kraetke
h1. Text Wrap and Hyphenation
2 1 Martin Kraetke
3 7 Martin Kraetke
Even though _xerif_ is an automatic typesetting system, it is sometimes necessary to manually control line breaks. However, you should be aware that too much manual interventions may lead to unpleasant results elsewhere. In addition, xerif is not intended for "manual typesetting" and is not as efficient as DTP typesetting programs such as Adobe InDesign or Affinity Publisher in this regard.
4 1 Martin Kraetke
5 7 Martin Kraetke
There are various ways to change line breaking manually. 
6 1 Martin Kraetke
7 6 Martin Kraetke
h2. Text Wrap commands
8 1 Martin Kraetke
9 7 Martin Kraetke
With Microsoft Word's on-board tools, you can already control the text wrap to a certain extent:
10 1 Martin Kraetke
11
|_. Word symbol (Unicode) |_. Description |_. Key combination |
12
| @°@ (U+00A0) | protected space | @Ctrl@ + @Shift@ + @Space@ |
13
| @¬@ (U+00AD) | conditional hyphen | @Ctrl@ + @-@ |
14
| @-@ (U+00A0) | protected hyphen | @Ctrl@ + @Shift@ + @_@ | 
15
| @↵@ | Soft Return | @Shift@ + @Enter@ | 
16
| @⏎@ | Page break | @Ctrl@ + @Enter@ | 
17 7 Martin Kraetke
18
h2. Unicode Symbols
19
20
There are some Unicode characters to control line breaks:
21
22
|_. Name |_. Unicode |_. Description |
23
| Zero Width Space |  U+200B| marks a potential line break without hyphenation |
24
| Non-Breaking Hyphen |  U+2011 | Hyphen that does not break to the next line |
25
| Narrow No-Break Space |  U+202F| Narrow space that does not break to the next line |
26 1 Martin Kraetke
27
h2. Processing instructions
28
29
xerif comes with so-called processing instructions: These are commands that are carried by Word up to the page break. The PI must be inserted in Word and assigned the PI format:
30
31
|_. PI (Unicode) |_. Description | 
32
| @+1@ | Extend paragraph by 1 line | 
33
| @-1@ | Catch up paragraph by 1 line | 
34
| @↡@ (U+21A1) | Page break but fills up line | 
35
36
37
h2. Hyphenation
38
39
xerif uses language-specific hyphenation patterns according to which hyphenation is carried out. However, these hyphenation patterns may not achieve the desired results for certain words. Therefore xerif also supports hyphenation lists. These are text files which store the desired hyphenation for a word, e.g.
40
41
<pre>
42
=== hyph-en.txt ===
43
acad-e-my
44
acad-e-mies
45
ac-cu-sa-tive
46
...
47
</pre>
48
49
You can also upload title-specific hyphenation patterns. These must be uploaded and versioned in the form @{$filename}-hyph-{$languagecode}.txt@ (e.g. @brill_521922_Mihalik-hyph-en.txt@). The exact file naming convention may differ, as this depends on the customer-specific naming conventions and you should coordinate this with your contact person.