Download the PHP package pedro-mendonca/convert-pt-ao90 without Composer
On this page you can find all versions of the php package pedro-mendonca/convert-pt-ao90. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pedro-mendonca/convert-pt-ao90
More information about pedro-mendonca/convert-pt-ao90
Files in pedro-mendonca/convert-pt-ao90
Download pedro-mendonca/convert-pt-ao90
More information about pedro-mendonca/convert-pt-ao90
Files in pedro-mendonca/convert-pt-ao90
Vendor pedro-mendonca
Package convert-pt-ao90
Short Description Open source language tool to convert Portuguese to AO90.
License GPL-3.0-or-later
Package convert-pt-ao90
Short Description Open source language tool to convert Portuguese to AO90.
License GPL-3.0-or-later
Please rate this library. Is it a good library?
Informations about the package convert-pt-ao90
Convert PT AO90
Description
Language tool to convert text according to the Portuguese Language Orthographic Agreement of 1990 (PT AO90)
Installation instructions
Installation can be done with Composer, by requiring this package as a dependency:
Make sure to include composer autoload in your project:
If you don't use Composer, you can install manually by downloading the latest release, add it to your project folder and include the main file in your code:
Usage
Examples:
-
Convert text string:
- See more examples and the complete replace pairs in the file example.php.
Changelog
1.3.3
- Fix converting strings with trailing space returning null.
- Update dependencies.
- Add more test cases.
- Tested up to PHP 8.3.
1.3.2
- Fix variable type error.
- Add some more replace pairs.
- Rebuild replace pairs.
- Update dependencies.
- Tested only on supported PHP versions (7.4+).
1.3.1
- Fix matching for words with exact case on the replace pairs.
1.3.0
- Rebuild replace pairs with half the size.
- Improve performance by using only lowercase replace pairs.
- Fix matching words starting with an accented vowel.
- Remove wrong replace pairs about cardinal points (lowercased since 1945).
- Add some more replace pairs.
- Update dependencies.
1.2.3
- Rebuild replace pairs.
1.2.2
- Fix sentence boundary issue with HTML after ending.
- Add sentence boundary after two new lines.
- Add more tests: new lines followed by HTML.
1.2.1
- Fix JSON path issue when used as dependency.
1.2.0
- Rebuild code to allow a detailed control over sentence and word boundaries.
- Fix problem of partial find+replace of words, now only whole words can be converted.
- Remove temporary bug fix of partial find+replace (acto->ato).
- Update main replace pairs library.
- Add more custom replace pairs rules.
- Rebuild and add both replace pairs JSON, minified and source (pretty).
- Add more tests for many different types of texts: Multiline, HTML, multiple sentences, etc.
1.1.0
- Use a pre-built Replace Pairs JSON file to improve performance (5x faster).
- Simplify Replace Pairs data.
- Bump minimum PHP to 7.2.
- Add Tests! Run the Convert PT AO90 against a set of text strings with expected results.
- Add some custom replace pairs rules.
1.0.3
- Move CI to GitHub Actions.
- Bump PHPStan Level to 9.
- Add Markdownlint and PHPMD.
- Fix coding standards.
1.0.2
- Fix autoload and library path for package installed as composer dependency.
1.0.1
- Add Composer install support.
1.0.0
- Initial release.
All versions of convert-pt-ao90 with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package pedro-mendonca/convert-pt-ao90 contains the following files
Loading the files please wait ....