News for hackers. Stuff that matters.

be5invis

Are there any plan in forseeable future (10 years) to port Rune to other platforms (win, mobile/tablet, ..)?
Re:Text Editing Hates You Too on Tuesday October 29, 2019 @03:49AM (#21384939)
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.

Re:Text Editing Hates You Too on Tuesday October 29, 2019 @03:21AM (#21384835)
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.
Re:Build Your Own Text Editor on Sunday August 04, 2019 @07:48AM (#20605905)
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
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...

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 :(

You have to know that the MSFT may not have the source code of Equation Editor, since it is a simplified version of MathType.
Re:Show HN: Mathcha – Online Mathematics Editor on Monday August 14, 2017 @02:36AM (#15006926)
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.
Re:Show HN: Mathcha – Online Mathematics Editor on Sunday August 13, 2017 @11:12AM (#15003204)
I guess you (or your company) does not have any Windows PC.
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
So where is the famous Idris elaborator? Where are the universes? Where’s inductive types? Where are they?
Re:TypeScript at Slack on Tuesday April 18, 2017 @04:52AM (#14137317)
Wait, isn’t using TypeScript politically incorrect? It is made by MS!!
Re:Iosevka – A Typeface for Code, from Code on Saturday April 01, 2017 @03:40PM (#14013756)
Your version is outdated.
Re:Iosevka – A Typeface for Code, from Code on Saturday April 01, 2017 @02:04AM (#14010762)
Leading and width is configurable, actually :)
Re:Iosevka – A Typeface for Code, from Code on Saturday April 01, 2017 @01:37AM (#14010666)
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.
Re:Iosevka – A Typeface for Code, from Code on Saturday April 01, 2017 @01:08AM (#14010549)
To be honest, Iosevka is not suitable for the current VF specification, because that it does not support changing glyph topology while changing parameters.
Re:Iosevka – A Typeface for Code, from Code on Saturday April 01, 2017 @12:49AM (#14010494)
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.

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.
Re:Visual Studio 2017 Release Candidate on Wednesday November 16, 2016 @05:40PM (#12972281)
So, when will cl support two-phase name lookup?
Re:Massive Dyn DNS outage on Friday October 21, 2016 @08:14AM (#12759712)
github homepage is unicorn now
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.
Re:PowerShell is open sourced and is available on Linux on Thursday August 18, 2016 @07:37PM (#12317017)
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
Tested using Edge on r14393, and the demo returns “Not vulnerable”. There is a SEC7111 error in the console.
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 :)

Re:The new TrueType interpreter in FreeType 2.7.0 on Sunday July 17, 2016 @09:47PM (#12112835)
Autohinting is hard, especially for ideographs. My hinter even used differential evolution to calculate how strokes should be placed. (link: github.com/be5invis/sfdhanautohint)

Older »