a / textr Goto Github PK
View Code? Open in Web Editor NEWModular typographic framework
Home Page: http://a.github.io/textr
Modular typographic framework
Home Page: http://a.github.io/textr
current tests are testing concrete plugins, which is redundant plugins are full tested by it’s own, thats why I suggest that textr need more generic way of testing workflow itself and not implementations in terms of concrete plugins
the case that plugins’ authors cannot imagine all possible usage cases, so its pretty dangerous to make these assumption. So the best trade off, is just to do nothing with input if passed locale is not defined, the same goes with locales not supported by plugin. What do you think?
checklist:
subj
just as sketch proposal. What do you think?
You can add info as in Yeoman instruction in section Few words for plugin creators:
The name property must be prefixed by generator-. The keywords property must contain "yeoman-generator" and the repo must have a description to be indexed by our generators page.
http://yeoman.io/authoring/
Hi,
I was just wondering what are your opinions or ideas on running textr in-browser through something like require.js.
Are there any caveats? Could it work?
I guess it depends a lot on which plugins are loaded. But I am wondering about your opinion on this in general.
Cheers
textr should have recommendations about using locale
variable to help textr’s plugins authors
See
http://github.com/iamstarkov/typographic-quotes
http://github.com/iamstarkov/typographic-quotes-l10n-db
http://github.com/andrepolischuk/typographic-numbers
/cc @andrepolischuk
With 0.3.0 you can set textr(defaults)
and tf.exec(text, options)
. That will be useful for recursive usage textr
bundles. For example, you can set {locale: 'ru'}
on the top level of your bundles (with defaults
or with exec(t, opts)
).
The other one change is that options
in the plugins can be used as context-object to pass data between the plugins. That achieved by cloning defaults
and options
to new object each times when you execute your trasformation stack. But I don't know use-cases for it. I know only one, but IMHO, it's antipattern:
var tf = textr()
// set locale dynamically
.use(function (text, ctx) {
ctx.locale = navigator.locale;
})
.use(quotes)
;
sdsfs
Consumers expect Textr to be a typographic engine itself rather than a tool for creating custom ones. And this confusion is entirely our fault.
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.