Giter Club home page Giter Club logo

Comments (8)

moyogo avatar moyogo commented on June 8, 2024 2

I'm wondering if anyone can think of any unforeseen consequences by doing this?

Some people use uni00A0 on purpose between words or before and after punctuation.

from zilla-slab.

m4rc1e avatar m4rc1e commented on June 8, 2024

@moyogo This was an assumption I had. Thank you!

from zilla-slab.

davelab6 avatar davelab6 commented on June 8, 2024

Right, so if anyone else uses nbsp on purpose, then they won't get the 'blackout' effect in the middle of those words, if Marc changes the feature only to remove the sub uni00A0 by space.black; rule.

The docs for the family could tell people who need to use nbsp with blackout to use another character that does the same thing (https://en.wikipedia.org/wiki/Non-breaking_space#Width_variation) and change that rule to one that uses those other non breaking space characters.

from zilla-slab.

moyogo avatar moyogo commented on June 8, 2024

How about substituting uni00A0 only in that context (at the end of the line)?

from zilla-slab.

davelab6 avatar davelab6 commented on June 8, 2024

You mean, substituting it only when it is followed by another character?

from zilla-slab.

m4rc1e avatar m4rc1e commented on June 8, 2024

Thanks @moyogo. I've rewritten the feature in the following manner:

sub space by space.black;
sub uni00A0' @all by space.black;

This does the following:

  • Space will always be subbed by space.black
  • uni00A0 will only get substituted if uni00A0 is followed by any glyph in the class @all

Here's a demo of the liga feature being enabled and disabled. The text uses uni00A0 instead of spaces. A uni00A0 glyph has also been appended to the end to mimic the same pattern as GF Docs. It seems to be working just fine.
zilla-slab

I'll make a quick test font now and try it out in GF Docs.

from zilla-slab.

m4rc1e avatar m4rc1e commented on June 8, 2024

The string below has uni00A0 instead of a space... its works nicely.

screen shot 2017-08-15 at 11 52 41

@davelab6 shall we proceed with this contextual sub approach?

from zilla-slab.

davelab6 avatar davelab6 commented on June 8, 2024

from zilla-slab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.