Comments (1)
This is an attempt to answer my own question. I should be grateful if some authorized person would confirm, correct or - even better - complete my research - read educated guesswork:
The command line takes the option --script func.js
, containing a JavaScript function
function compare( base, witness ) {
if( base==witness ) return 0
else if( x<y ) return -1
else return 1
}
where the arguments are both string type values and the value returned is as for the Java String.compareTo()
.
Changes in upper- and lowercasing are by default ignored during alignment ( @rhdekker in #85 ), but if the objective is to alter this into an exact match, the above function will make no difference. This is because the arguments for compare()
has already been normalized, i.e. to lower case and stripped of leading spaces. But don't panic, we can invent yet a function
function normalize( x ) {
return x ;
}
and behold, no normalization takes place. In fact, the first function compare()
is now superfluous.
from collatex.
Related Issues (20)
- <rdg> value in TEI output (Java) is "n", and should be "t"
- GraphML output in CollateX Python HOT 1
- Alignment error
- TEI output error (CollateX Python 2.2) HOT 1
- Regex to specify lower-priority collation tokens
- CollateX Python: Check input for duplicate witness ID and throw error if that is the case
- Choosing an algorithm HOT 6
- CollateX refuses Json input HOT 10
- JSON to TEI HOT 4
- Collatex demo api service seems to be down HOT 1
- Collating more than 2 witnesses by CollateX2.2 HOT 3
- Words in labels of dot and GraphML output are being merged HOT 4
- dependencies update HOT 2
- CollateX, bug HOT 1
- CollateX, bug, now with e-mail HOT 2
- Collate bug with detect_transpositions
- Unexpected error, Invalid resource: A, zsh: unknown file attribute: i HOT 9
- Can the latest Python 3.10 fix be pushed to PyPi? HOT 5
- demo service seems down (as of 2024-02-9 15:40 EST) HOT 3
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 collatex.