Comments (7)
What I currently do is: objects outside the enclosing verse: display them as plain() would display them. Just a short identification.
Only objects of a level lower than the verse will be shown in full.
Very understandable request that the user determines the nature of the container within which pretty reigns and without which plain reigns.
I have already attempted to do this, but it turns out to be more work than expected. Two factors:
- it should work both in condensed and uncondensed mode
- the complexity of dealing with phrase and phrase atoms (idem for clauses and sentences) is biting
back, and what about half verses. - then I also want to have this for cuneiform, in a way that I do not duplicate too much code.
In short, this takes a fair bit of refactoring. I'll see when I can fit it in.
from text-fabric.
The use case for this request is for reviewing lots of datasets. I constantly have to scroll up or down on the screen until I see my highlighted result. I would like to move through datasets faster and see the relevant result instantly.
from text-fabric.
Started working on this.
Pragmatic solution for objects that are not completely contained in their container objects, such as a sentence that spans verses: I put each object in the container that contains their first slot and the container that contains their last slot. Each container cuts of the material of subobjects that stick out of the container. This will not solve cases where a sentence spans three verses, or very irregular objects.
from text-fabric.
An other effect of condensing: objects that are not contained in any container will not show up in condensed results.
from text-fabric.
What would be an example of an object like this?
from text-fabric.
If your search for
verse
sentence
phrase function=Pred
and then condense to clauses, the verse and the sentence are thrown away from the condensed results.
And what should happen if you condense to lex
, or if your search results condense lex
items?
from text-fabric.
It's done, but I leave the issue open for if the exact functionality needs to be tweaked
from text-fabric.
Related Issues (20)
- silent=True does not silence HOT 4
- A new notion of adjacency HOT 21
- Applib versioning
- Feature comparison for TF-Query HOT 7
- Non-matching template lines HOT 3
- Comments starting after whitespace HOT 1
- Update Software Heritage badge HOT 1
- Add option to manually upload new features HOT 5
- Over-Zealous TF Rate Limit Warning HOT 7
- feature request: plain text show HOT 3
- Better economy with GitHub API requests HOT 2
- bug in defining relations between elements HOT 12
- combining /with/ and relation operators .lex=lex. is not possible HOT 6
- bug in Recorder.read() HOT 2
- Use of Python 3.8 method breaks backwards compatibility by using removeprefix() HOT 7
- Bug in fabric.py when trying to load Tischendorf text HOT 4
- Bug in loading text-fabric 9.0 HOT 4
- bug with the relational operators `<` and `>` when doing feature comparisons `.f<g.` or `.f>g.` HOT 1
- No more app-xxx repositories HOT 4
- EOF error when loading app with Python 3.11 HOT 2
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 text-fabric.