Comments (3)
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.
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.
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)
- Resolve html5lib's DeprecationWarning
- Consider to use cElementTree HOT 1
- Copy icon removes spaces (breaks Korean)
- Some characters are not recognized non-CJK characters to skip
- Non-breaking space character (/u00A0) causes AssertionError
- Adding Chinese support
- Use pickle for caching
- "?" is not included in a chunk HOT 1
- English characters should be ignored
- Can't install budou using pip HOT 4
- Set maximum length for the chunk HOT 1
- Minor mistake in README HOT 1
- Compatibility with grow HOT 1
- `aria-describedby` is stripped by `_html_serialize`
- Using `budou` name in Node.js port HOT 1
- Add Jieba support
- [run error] set GOOGLE_APPLICATION_CREDENTIALS HOT 1
- Chinese language name
- WARNING:googleapiclient.discovery_cache:file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from budou.