Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noesya/orthotypo
Pour un texte correctement typographié
https://github.com/noesya/orthotypo
Last synced: about 2 months ago
JSON representation
Pour un texte correctement typographié
- Host: GitHub
- URL: https://github.com/noesya/orthotypo
- Owner: noesya
- License: mit
- Created: 2023-10-12T12:02:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-15T16:15:14.000Z (10 months ago)
- Last Synced: 2024-03-15T17:36:53.332Z (10 months ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/orthotypo
- Size: 58.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Orthotypo
[![Maintainability](https://api.codeclimate.com/v1/badges/16eb1f100538684deee0/maintainability)](https://codeclimate.com/github/noesya/orthotypo/maintainability)
Il y a un corpus riche de règles typographiques, dépendant des langues.
Cette gem vise à intégrer ces règles et à automatiser leurs mises en application pour le web, quand cela est possible.## Installation
Install the gem and add to the application's Gemfile by executing:
$ bundle add orthotypo
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install orthotypo
## Usage
Ajout d'espace fine insécable avant les signes doubles en français.
```
"Un texte avec un signe double: mais il manque l'espace.".ortho
> Un texte avec un signe double : mais il manque l'espace.```
## Roadmap
### v1
Ne pas endommager l'HTML et les HTML entities ( )### v2
S'adapter aux locales (détecter I18n)
Permettre les configs## Tests
```
rake
``````
bundle exec rspec
```Pour jouer un seul test :
```
bundle exec rspec ./spec/composer/fr_spec.rb:56
```## Sources
- https://fr.wikipedia.org/wiki/Code_typographique
- http://www.orthotypographie.fr/
- https://www.scribbr.fr/elements-linguistiques/les-espaces/## Development
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/noesya/orthotypo. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/orthotypo/blob/main/CODE_OF_CONDUCT.md).
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
## Code of Conduct
Everyone interacting in the Orthotypo project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/orthotypo/blob/main/CODE_OF_CONDUCT.md).