HN user

khaled

182 karma

[ my public key: https://keybase.io/khaledhosny; my proof: https://keybase.io/khaledhosny/sigs/lckkr3_dwXajYVvxhRXaEGLfR5oJp7y7rl6N__fuxT0 ]

Posts10
Comments66
View on HN

I don't think it generates better results

It does if one is doing typesetting math-heavy documents. Nothing really matches TeX quality or flexibility in math typesetting, not even typst (yet, at least).

This is still not rasterization, but a way to modify glyph outlines on the fly. How they are rasterized eventually should be mostly unchanged.

In Arabic, Mercury (planet) and mercury (element) are two different words (عطارد and زئبق), here the machine translation is using the wrong mercury for the context.

That is not the point I’m making, rather a single person is responsible for how most of software render text in most of the world writing systems and no one is wondering how 6 billion people on this planet so much depend on the work of “this one guy”. It is because text layout is something 99% of software developers can’t do right if their lives depended on it (same for anything that involves the irregularities of human nature, software developers are not cut for this).

Reem Kufi designer here, that is the original form of ع in Arabic and the only form used in manuscript Kufi. Kufi-inspired typefaces often use the more familiar form from later calligraphic styles. Reem Kufi has an alternate form as well, but it is not the default.

I strand by my comment. Replicate core TeX (and LaTeX) core features is easy (text layout, hyphenation, line breaking, math typesetting, etc. all are solved issue, often with many independent implementation that are as good as TeX‘s if not better), the issues that holds most people are packages and decades of TeX/LaTeX legacy.

Some low level text libraries (FriBiDi, HarfBuzz) use UTF-32 as it makes code simpler when you have to work on it at code point level. Most code does not need that of course and is better off working as a different level than code points.

The local variants are actually older than standard Arabic (they all seem to stem from a common source). The standard Arabic is a synthetic language invented by grammarians who selected what they considered the best of all Arabic dialects at their time and formalized it. The general wisdom that the local variants are deformed form of the standard Arabic is not supported by linguistic research.

Hamza is a letter (basically it is what the letter alif is supposed to be, the long vowel usually written as alif is not a letter itself). But for historical reason it has a very weird set of orthographic rules where is can or can not be seated on other letters depending on the context (and unlike other Arabic letters, the context here involves the vowels).

TeX Live 2019 7 years ago

That is the Type 1 realization of it, the original Metafont outputs bitmaps tailored for the target device. Unfortunately no widely font rendering library supports Metafont directly, so they are often converted to Type 1 or OpenType and loose that capability.

TeX Live 2019 7 years ago

Most of that is documentation (PDF files) and fonts (often in multiple formats for the same font). I skip the documentation and read them online on texdoc.net, and it trimmed down my installation size to 2.9GB (2.1GB of which are fonts).

Hyphenation in CSS 7 years ago

That happens in TeX as well, the width of “efficient” does not necessarily equal to the width of “ef” + “ficient” due to the presence of ligatures, and TeX deals with it by storing the width of the full ligature as well as the pre and post-line break widths (for all possible line breaks in the middle of paragraphs) and takes them into consideration when calculating line breaks. This can be generalized to any situation where line breaking changes the width of a chunk of the text.