HNHacker News
TopNewBestAskShowJobs

be5invis

491 karma · joined December 4, 2011

submissionscomments
be5invis··on Rune 1.1: adds Python, an Emacs editor, a symbol index and is now free
Are there any plan in forseeable future (10 years) to port Rune to other platforms (win, mobile/tablet, ..)?
be5invis··on Text Editing Hates You Too
The story about line wrapping is mainly that, you:

  · Break the text into runs.
  · Calculate BiDi at paragraph level.
  · Shape every run to get its length and possible line breaking points.
  · Arrange the runs (now only have length, height, text isnide it and some breaking properties — glyphs and glyph positions are dropped) into lines.
Such process is called “measuring”. And the real text display is delayed until a line become visible: you fetch out the text runs in the line and do the real display.

In most times (like appending text) you do not to do much recalculation.

be5invis··on Text Editing Hates You Too
Let me count all the features that a proper rich text box should support:

  · Input methods, including...  
    · Composing IME  
    · Speech  
    · Handwriting  
    · Emoji picker  
  · Complex text rendering, including...  
    · Bidi  
    · Shaping  
    · Complex-script-aware editing  
    · Complex-script-aware find, replace, etc.  
  · Accessibility
And what they can choose to support:

  · Advanced typography, including...  
    · About line breaking...  
      · Hyphenation  
      · Optimized line break (Knuth-plass, etc.)  
    · About microtypography  
      · OpenType features (ligatures, etc.)  
      · OpenType variations  
      · Multiple master fonts  
      · Proper font fallback ← It is not a simple lookup-at-each-character process  
    · Advanced Middle East features, including...  
      · Kashida  
    · Advanced Far East features, including...  
      · Kinsoku Shori  
      · Auto space insertion  
      · Kumimoji  
      · Warichu  
      · Ruby  
    · Proper vertical layout, including...  
      · Yoko-in-Tate  
  · Inline objects and paragraph-like objects, including...  
    · Images  
    · Hyperlinks  
    · Math equations ← This is really hard.
be5invis··on Build Your Own Text Editor
I don't see any references to things like HarfBuzz or DWRITE, which are NECESSARY to properly display any scripts that's not European. All properly implemented text editors are rich text — because you will need to support font fallback and BiDi and all the Unicode complexity
be5invis··on Microsoft’s HoloLens 2: a $3,500 mixed-reality headset for the factory
DWRITE is very extensible so you can always implement an IDWriteTextRenderer and do all the magic staff in it.

Link: https://docs.microsoft.com/en-us/windows/desktop/directwrite...

be5invis··on Slate JS – A customizable framework for building rich text editors
Rich text editors' complexity is far beyond ordinary programmer's imagination, especially when complex script (like Arabic) is in it.

It is really good to see they have RTL support.

-- However they messed up when using composing IMEs :(

be5invis··on Microsoft Has Manually Patched Their Equation Editor Executable
You have to know that the MSFT may not have the source code of Equation Editor, since it is a simplified version of MathType.
be5invis··on Show HN: Mathcha – Online Mathematics Editor
The website works well in Edge but you claimed that it does not support that. I have to override the user agent in order to access your editor.
be5invis··on Show HN: Mathcha – Online Mathematics Editor
I guess you (or your company) does not have any Windows PC.
be5invis··on Luna – Visual and textual functional programming language
You say you have dependent types

OK, could you define this?

    data Eq : {a : Type} -> a -> a -> Type where
        Refl : Eq x x

    sym : {x : a} -> {y : a} -> Eq x y -> Eq y x
    sym Refl = Refl

    replace : {a : Type} -> {x : a} -> {y : a} -> {f : a -> Type} -> Eq x y -> f x -> f y
    replace Refl p = p
be5invis··on Forall.js: Idris-like static types and invariant checks for JavaScript
So where is the famous Idris elaborator? Where are the universes? Where’s inductive types? Where are they?
be5invis··on TypeScript at Slack
Wait, isn’t using TypeScript politically incorrect? It is made by MS!!
be5invis··on Iosevka – A Typeface for Code, from Code
Your version is outdated.
be5invis··on Iosevka – A Typeface for Code, from Code
Leading and width is configurable, actually :)
be5invis··on Iosevka – A Typeface for Code, from Code
Iosevka does not have `fi` ligature. The "Term" variant is used for some restricted environments, like some Linux would think that Iosevka is not monospace due to it has glyphs wider than one space.
be5invis··on Iosevka – A Typeface for Code, from Code
To be honest, Iosevka is not suitable for the current VF specification, because that it does not support changing glyph topology while changing parameters.
be5invis··on Iosevka – A Typeface for Code, from Code
Do you know that all letters in Iosevka are EXACTLY 1/2 em wide?

For ASIAN users, you can use THIS and preserve your perfect alignment.

be5invis··on Second Chinese Firm in a Week Found Hiding Backdoor in Android Devices
I think Hanlon's Razor can be applied to this example: They just do not think that encryption is important. It is real for Chinese companies.
be5invis··on Visual Studio 2017 Release Candidate
So, when will cl support two-phase name lookup?
be5invis··on Massive Dyn DNS outage
github homepage is unicorn now
be5invis··on Why are the Microsoft Office file formats so complicated? (2008)
It reminds me the format of fonts. That is, your font is actually a program, a program used to draw shapes. There are even subroutine calls in it, and it is widely used to reduce file size.
be5invis··on PowerShell is open sourced and is available on Linux
OK, so you can finally fix the bug that breaks non-ASCII, LF line endings and binary redirection. Link: https://github.com/PowerShell/PowerShell/issues/1908
be5invis··on Microsoft Live Account Credentials Leaking from Windows 8 and Above
Tested using Edge on r14393, and the demo returns “Not vulnerable”. There is a SEC7111 error in the console.
be5invis··on Ask HN: Is it difficult for non-Chinese to work in China?
First you have to remember that China itself's population is as large as the entire western world, so things are completely different here. For example, almost nobody in China use credit card for online payment: they use Alipay as an alternative.

1. Perhaps high salary? Non-local employees are rare here.

2. No in tech companies, but yes in small cities and countries. In tech companies and cities like Shanghai, forigners are treated better than locals, seriously.

3. Easier than getting a work in US.

4. Don't send a clock as a gift :)

be5invis··on The new TrueType interpreter in FreeType 2.7.0
Autohinting is hard, especially for ideographs. My hinter even used differential evolution to calculate how strokes should be placed. (link: github.com/be5invis/sfdhanautohint)
be5invis··on Running I3 Window Manager on Ubuntu for Windows
Can WLS run Wine?
be5invis··on Space Mono
Being geometric is good, but why the /g is so strange?
be5invis··on A language that compiles to Bash and Windows Batch
So how to install it? Windows users are extremely lazy, they often just wait for a “click-and-run”.
be5invis··on New Sublime Text update
They are free and open-source. The latest VSCode has my code to fix CJK word wrapping (and Kinsoku Shori).
be5invis··on Code Page 437 Refuses to Die
Yes, you can assume, but existing applications, maybe written in 1990s even 1980s, won't. And there are millions of computers, maybe in important industrial companies, are still using them.
Page 1 of 4Next →