Open ronaldtse opened 3 years ago
Here's the parsed result:
Original:
<NOTE – d<i>N</i>/<i>N</i> represents the probability that a particle has its components of velocity within the intervals considered.
iev/subregisters/eng/definition/1a75b93e-ad96-5be1-9a95-fcf9712b406e.yaml:
dstem:[N]/stem:[N] represents the probability that a particle has its components...
@skalee is there something you can do here? Thanks!
@ronaldtse How about placing a zero-width space just before stem
? That said, d<i>N</i>/<i>N</i>
looks buggy in general, perhaps parser should print a warning when it encounters something like that?
Nah, I think my previous comment was stupid. That preceding "d" is a part of mathematical formula and should be in stem
, correct? It should rather be: stem:[dN]/stem:[N]
, or maybe even: stem:[dN/N]
, correct?
For reference, we're talking about concept 521-01-05 here, but plenty of others are affected too. Full list (including false positives):
That preceding "d" is a part of mathematical formula and should be in stem, correct? It should rather be: stem:[dN]/stem:[N], or maybe even: stem:[dN/N], correct?
Indeed. The latter is the most correct, certainly.
Here's a source sample:
Notice that
d<i>N</i>/<i>N</i>
becomesdstem:[N]/stem:[N]
. When we capture the block ofd<i>N</i>/<i>N</i>
we need to do something... so far,{\w}stem:[...]
really meansstem:[{\w} ...]
.