Coder Social home page Coder Social logo

Comments (3)

tushuhei avatar tushuhei commented on July 28, 2024

Hi Murata-san,
Thank you so much for your suggestion! The original intent of using inline-block SPAN tags is that a chunk wraps nicely when the screen is too narrow. Please see this example below.
https://jsfiddle.net/v3c2kxy9/1/
As shown here, sentences with zero-width spaces or WBR elements overflow if the parent element is narrow compared to the child chunks. This is a common case with display ads, for example.
Having that said, I'm happy to support zero-width space and WBR element as exporting options since they should be useful in certain cases such as e-books. The change should be trivial, so I think I can work on this feature in the near future.

from budou.

murata2makoto avatar murata2makoto commented on July 28, 2024

I see what you mean. My scenario is a bit different from yours.

If you provide some easy mechanisms for allowing dyslexia people to use your technology (using wbr and word-break keep-all) for browsing existing HTML pages, you will become a hero.

from budou.

tushuhei avatar tushuhei commented on July 28, 2024

This is still experimental, but I've added a feature to serialize with WBR tags.

$ budou --wbr  "今日は快晴です。"
<span style="word-break: keep-all;">今日は<wbr></wbr>快晴です。</span>

Result preview: https://codepen.io/tushuhei/pen/OJJvEzR

from budou.

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.