Skip to content

Commit 485d375

Browse files
committed
word accents and diplay columns
1 parent 960b677 commit 485d375

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

backend/main.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,6 @@ def build_sparql_all(search: SearchRequest) -> str:
145145
PREFIX dcterms: <http://purl.org/dc/terms/>
146146
"""
147147
BASE_TRIPLES = f"""
148-
?lexical_entry1 rdf:type ontolex:LexicalEntry .
149-
?lexical_entry1 ontolex:lexicalForm ?lexical_form1 .
150-
151-
?lexical_form1 ontolex:writenRep ?palabra .
152148
153149
?lexicon1 rdf:type lime:Lexicon .
154150
?lexicon1 rdfs:label ?base_label .
@@ -157,6 +153,7 @@ def build_sparql_all(search: SearchRequest) -> str:
157153
?annotation1 rdf:type emolex:Annotation .
158154
?annotation1 emolex:affects ?lexical_entry1 .
159155
?annotation1 dcterms:source ?lexicon1 .
156+
?annotation1 rdfs:label ?palabra .
160157
161158
BIND("BASE_LABEL" AS ?base1)
162159
"""
@@ -238,10 +235,6 @@ def build_sparql_any(search: SearchRequest) -> str:
238235
PREFIX dcterms: <http://purl.org/dc/terms/>
239236
"""
240237
BASE_TRIPLES = """
241-
?lexical_entry rdf:type ontolex:LexicalEntry .
242-
?lexical_entry ontolex:lexicalForm ?lexical_form .
243-
244-
?lexical_form ontolex:writenRep ?palabra .
245238
246239
?lexicon rdf:type lime:Lexicon .
247240
?lexicon rdfs:label ?base .
@@ -250,6 +243,7 @@ def build_sparql_any(search: SearchRequest) -> str:
250243
?annotation rdf:type emolex:Annotation .
251244
?annotation emolex:affects ?lexical_entry .
252245
?annotation dcterms:source ?lexicon .
246+
?annotation rdfs:label ?palabra
253247
254248
255249
"""

frontend/src/components/Finder.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,10 @@
468468
}
469469

470470
.results-table {
471-
width: 80%; /* ocupa un 80% del ancho disponible */
471+
width: 100%; /* ocupa un 80% del ancho disponible */
472472
max-width: 1200px; /* límite superior */
473473
border-collapse: collapse;
474-
table-layout: fixed; /* columnas equilibradas */
474+
table-layout: auto ; /* columnas equilibradas */
475475
background-color: #fff;
476476
border: 1px solid #ddd;
477477
border-radius: 8px;
@@ -482,8 +482,9 @@
482482
.results-table th,
483483
.results-table td {
484484
padding: 10px 14px;
485-
word-break: break-word;
486-
white-space: normal;
485+
white-space: nowrap; /* permite saltos de línea si hay espacios */
486+
word-break: normal; /* no corta palabras */
487+
overflow-wrap: anywhere; /* corta solo si hay texto muy largo sin espacios (URLs, etc.) */
487488
text-align: center;
488489
}
489490

0 commit comments

Comments
 (0)