Comments (3)
I should probably add that I already tried to use a phrase replacement rule line
'i.\u202fe. & i.e.\n'
(where the replacemnts file contains no \
charcter but the u202f codepoint itself)
but this does not work either.
from yalafi.
I don’t think, this is a YaLafi problem. In German, the abbreviation d.\,h.
is recognized as correct, while d.h.
and d. h.
are wrong. According to this document (page 6, link in German) there should be no thin space in English abbreviations.
If you still want to write i.\,e.
, you may disable the EG_SPACE
rule or, even better, define your own rules using a local server.
from yalafi.
I had a quick look into this again. There is still the point that the replacement rule using the Unicode character does not work, here is why: utils.replace_phrases
uses string.split()
to split the replacement rule into parts. Thus, the input 'i.\u202fe. & i.e.'
is divided into ['i.', 'e.', '&', 'i.e.']
. Hence, it results in the same replacements as 'i. e. & i.e.'
would. Assuming that nobody uses tabs in the replacement file, one could instead use string.split(' ')
. In the above example this would result in ['i.\u202fe.', '&', 'i.e.']
which should solve the problem.
@doeblerh: I think your suggestion has an unwanted side effect: The rule i. e. & i.e.
would also replace the LaTeX code i.\, e.
(there is an extra whitespace between \,
and e
) to i.e.
, although it produces a too large spacing.
from yalafi.
Related Issues (20)
- Ignore minted environment
- Custom global macro packages HOT 2
- Support `autoref`
- Update glossaries
- Custom LanguageTool Server URL
- YaLafi compatibility with the premium API of LanguageTool HOT 4
- Status of the project HOT 23
- How to avoid own commands. HOT 2
- Local installation doesn't work after change in build system HOT 4
- Add tests for successful installation HOT 1
- YaLafi to handle LaTeX syntax (recognize begin/end of environments) HOT 10
- Remove cyclic imports
- `\newenvironment` is not parsed by YaLafi
- Add `LTadd`, `LTskip` and `LTextract` environments.
- Add support for the `comment` package.
- Problems when including files with the extensions txt, pgf, and latex
- How to make the proofreading tool LanguageTool know new words? HOT 3
- Disable single command, because its arguments (labels) are not meant to be checked HOT 3
- Add LaTeX macro `\providecommand`
- Documentation overhaul
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 yalafi.