nathanford / ragadjust Goto Github PK
View Code? Open in Web Editor NEWA bit of JavaScript to fix your text rag for prepositions, small words, or emphasis.
A bit of JavaScript to fix your text rag for prepositions, small words, or emphasis.
Hi !
It seems that it adds a unbreakables spaces at the beginin of paragraph for which the first word is too short.
Is it normal ?
Is there a way to correct that ?
Thanks :)
Not reporting an issue, I just came to say that this would make a neat WordPress plugin. Any plans for that? If not I'd be happy to build it if I can find some spare time..!
Hi,
I'd love to use this but I need to be able to tell clients what license bits of software like this come from. Will you GPL or MIT it for instance?
I wonder if it would be good to have a limit on how many short words can get linked together?
On my site I've got a par which ends:
Singapore, the USA and Vietnam.
Which gets transformed to Singapore, the USA and Vietnam.
which wraps in a block and really undermines flow.
Here's the link, first par after the image: http://equivalentideas.com/journal/tpp-against-a-narrowing-circle/
Now that I look at it, many places where two or more short words are together don't wrap well.
Interesting!
Hi! I've made a grunt task based on your plugin. At first I thought I'd just port your code, then I started adding new features and options. See if you like it:
https://github.com/adamhavel/grunt-raggedast
Thanks for the idea!
See this sentence near the end of this page: http://markboulton.co.uk/journal/design-abstraction-escalation
I will have a fuzzy recollection of something – maybe – that is similar.
After ragadjust.js, we have this:
I will have a fuzzy recollection of something – maybe that is similar.
There are several instances of the problem on that page.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.