Guest User

Untitled

a guest
Oct 6th, 2024
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. \setupalign[normal]
  2.  
  3. \definefontfeature[timesfeatures][default][
  4. ccmp=yes, % Composes multiple characters into a single glyph or breaks down ligatures.
  5. kern=yes, % enables kerning
  6. extrakerns=yes, % enables extra kerning
  7. trep=yes, % Enables single quotes to show up correctly in text, perhaps does more
  8. itlc=yes, % Activates italic correction.
  9. mark=yes, % Used for positioning diacritical marks (accents, dots, etc.) relative to base characters.
  10. mkmk=yes, % positions diacritical marks relative to other marks
  11. locl=yes,
  12. mode=node,
  13. language=dflt,
  14. dlig=yes,
  15. protrusion=quality,
  16. expansion=quality,
  17. script=latn,
  18. ]
  19.  
  20. \definefallbackfamily [myfonts] [rm] [sourcehanserifsc] [preset=range:chinese]
  21. \definefallbackfamily [myfonts] [rm] [sourcehanserifk] [preset=range:korean]
  22. \definefallbackfamily [myfonts] [rm] [sourcehanserif] [preset=range:japanese]
  23. \definefontfamily [myfonts] [rm] [Times New Roman] [features=timesfeatures]
  24.  
  25. \definefallbackfamily [myfonts] [ss] [sourcehansanssc] [preset=range:chinese]
  26. \definefallbackfamily [myfonts] [ss] [sourcehansansk] [preset=range:korean]
  27. \definefallbackfamily [myfonts] [ss] [sourcehansans] [preset=range:japanese]
  28. \definefontfamily [myfonts] [ss] [aptos]
  29.  
  30. \definefontfamily [myfonts] [tt] [aptosmono] [features=none]
  31.  
  32. \definefontfamily [myfonts] [mm] [math] [stixtwo]
  33.  
  34. \setupbodyfont[myfonts,12pt]
  35.  
  36. \mainlanguage[en-us] % i know it is redunant to put american english, but I like it to be explicitely typed
  37.  
  38. \starttext
  39.  
  40. Testing
  41.  
  42. Nature is one of the most beautiful and captivating subjects in the world. When the sun rises, its light spreads over the mountains and trees, and the flowers begin to bloom. Each place offers something unique, from flowing streams to stunning beaches. We must protect nature so that future generations can enjoy this beauty.
  43.  
  44. \start
  45. \mainlanguage[ch]
  46. \setscript[hanzi]
  47. 中文是世界上使用最广泛的语言之一,拥有悠久的历史和丰富的文化。汉字的独特性使得中文不仅是一种交流工具,也是艺术表达的形式。中国的文学传统包括古代诗词和现代小说,展现了深厚的思想和情感。随着中国在全球舞台上的崛起,学习中文的热潮也日益增长。
  48. \stop
  49.  
  50. \start
  51. \mainlanguage[jp]
  52. \setscript[nihongo]
  53. 日本語は独特な表現力を持つ言語で、漢字とひらがな、カタカナの三種類の文字を使います。日本の文学は古代から続く豊かな伝統があり、特に詩や小説が有名です。文化的な要素も深く、アニメやマンガなどの現代のメディアを通じて世界中に影響を与えています。日本語を学ぶことは、日本の文化を理解するための素晴らしい方法です。
  54. \stop
  55.  
  56. \start
  57. \mainlanguage[kr]
  58. \setscript[hangul]
  59. 한국어는 독특한 문자체계인 한글을 사용하는 언어로, 그 역사와 문화가 매우 깊습니다. 한국의 문학은 고전시가에서 현대소설에 이르기까지 다양하며, 그 속에는 풍부한 감정과 철학이 담겨 있습니다. 한국의 전통과 현대문화는 K-팝, 드라마 등으로 전 세계에 영향을 미치고 있으며, 한국어를 배우는 것은 이러한 문화를 이해하는 데 큰 도움이 됩니다.
  60. \stop
  61.  
  62. \stoptext
Add Comment
Please, Sign In to add comment