Skip to content

Commit

Permalink
test(packages): Add test covering OT +ruby feature
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Nov 21, 2023
1 parent d7dac25 commit f72f637
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile-fonts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ TESTFONTFILES = $(DOCSFONTFILES)
TESTFONTFILES += Amiri-Regular.ttf
TESTFONTFILES += AmiriQuran.ttf
TESTFONTFILES += AwamiNastaliq-Regular.ttf
TESTFONTFILES += FRBTaiwaneseKana.otf
TESTFONTFILES += LibertinusSans-Bold.otf
TESTFONTFILES += NotoNaskhArabic-Regular.ttf
TESTFONTFILES += NotoSansKannada-Regular.ttf
Expand Down Expand Up @@ -73,6 +74,10 @@ notobase = $(shell echo $(notdir $1) | sed -e 's/-.*//')
.fonts/TwemojiMozilla.ttf: | .fonts
$(CURL) -fsSL https://github.com/mozilla/twemoji-colr/releases/download/v0.5.1/$(notdir $@) -o $@

.fonts/FRBTaiwaneseKana.otf: | .fonts
: $(CURL) -fsSL https://github.com/ctrlcctrlv/FRBTaiwaneseKana/releases/download/v1.1/$(notdir $@) -o $@
$(CURL) -fsSL https://raw.githubusercontent.com/ctrlcctrlv/FRBTaiwaneseKana/5c367e9ee5aefd54b5c9c9e996705f0561fe3d15/$(notdir $@) -o $@

# Tell make how to download font file bundles (when not downloadable individually)

.sources/AwamiNastaliq-2.200.zip: | .sources
Expand Down
17 changes: 17 additions & 0 deletions tests/bug-1047.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Set paper size 297.6377985 419.5275636
Begin page
Mx 24.7039
My 42.3452
Set font FRB Taiwanese Kana;24;400;;normal;+ruby;;LTR
T 172 w=24.0000 (タ)
Mx 48.7039
T 145 w=24.0000 (イ)
Mx 72.7039
T 122 w=12.0000 (𚿳)
Mx 24.7039
My 82.3452
Mx 34.7039
Set font Noto Serif CJK TC;40;400;;normal;;;LTR
T 34119 w=40.0000 (臺)
End page
Finish
10 changes: 10 additions & 0 deletions tests/bug-1047.sil
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
\begin[class=jplain,papersize=a6]{document}
\nofolios
\neverindent
\language[main=zh]
\use[module=packages.ruby]
\font:remove-fallback
\font:add-fallback[family=Noto Serif CJK TC]
\font[family=FRB Taiwanese Kana,size=40pt]
\ruby[reading=タイ𚿳]{臺}
\end{document}

0 comments on commit f72f637

Please sign in to comment.