Skip to content

Commit

Permalink
Fixed loader for Chinese Pinyin; cleaned up plain text files.
Browse files Browse the repository at this point in the history
  • Loading branch information
reutenauer committed May 18, 2019
1 parent 012200c commit 05ee2f0
Show file tree
Hide file tree
Showing 219 changed files with 1,272 additions and 10,283 deletions.
2 changes: 1 addition & 1 deletion TL/tlpkg/tlpsrc/hyphen-chinese.tlpsrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ runpattern f texmf-dist/tex/generic/hyph-utf8/patterns/txt/hyph-zh-latn-pinyin.c
runpattern f texmf-dist/tex/generic/hyph-utf8/patterns/txt/hyph-zh-latn-pinyin.hyp.txt
runpattern f texmf-dist/tex/generic/hyph-utf8/patterns/txt/hyph-zh-latn-pinyin.lic.txt
runpattern f texmf-dist/tex/generic/hyph-utf8/patterns/txt/hyph-zh-latn-pinyin.pat.txt
runpattern f texmf-dist/tex/generic/hyphen/pyhyph.tex
runpattern f texmf-dist/tex/generic/hyphen/hyph-zh-latn-pinyin.ec.tex
27 changes: 16 additions & 11 deletions hyph-utf8/source/generic/hyph-utf8/generate-plain-patterns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# include OldLanguage::TeXLive
include TeX::Hyphen

# FIXME Close files!
# FIXME sr-cyrl?
print 'Generating plain files for (parenthesised tags are skipped) '
Language.all.sort.each do |language|
Expand Down Expand Up @@ -45,19 +46,23 @@
end

# exceptions
file = outfile.('hyp') # This ensure a file is created, even if it may be empty
file.puts language.exceptions if language.exceptions != ""
unless language.exceptions == ""
file = outfile.('hyp') # This ensure a file is created, even if it may be empty
file.puts language.exceptions
end

# characters
file = outfile.('chr')
language.extract_characters.each do |character|
file.puts character
end
### FIXME Do issue #33 instead
### # characters
### file = outfile.('chr')
### language.extract_characters.each do |character|
### file.puts character
### end

# comments and licence
file = outfile.('lic')
file.puts language.comments_and_licence
### FIXME Do something else instead
### # comments and licence
### file = outfile.('lic')
### file.puts language.comments_and_licence

file.close
### file.close
end
puts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
% 8-bit engine (such as TeX or pdfTeX)
\message{EC Pinyin Hyphenation Patterns (with tone markers) 2018-11-25 (WL)}
% Legacy file contains patterns for pinyin without tone markers
\input pyhyph.tex
\input hyph-zh-latn-pinyin.ec.tex
\fi\else
% pTeX
\message{EC Pinyin Hyphenation Patterns (with tone markers) 2018-11-25 (WL)}
Expand Down
Loading

2 comments on commit 05ee2f0

@mojca
Copy link
Member

@mojca mojca commented on 05ee2f0 May 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please split this in three commits next time? (Pinyin fix, updated lithurgical latin patterns and plain text changes are unrelated.)

Anyway, thank you for fixing this.

@reutenauer
Copy link
Member Author

@reutenauer reutenauer commented on 05ee2f0 May 19, 2019 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.