Add option to disable autoScriptToLang on certain elements if wanted
Maintainer antworten meist innerhalb von 5 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 32/100
Rechercherichtung
Start by reproducing the split with the sample markup and the autoScriptToLang setting enabled, and check where the output adds lang spans around text inside the td and div elements. The issue sketches a disableAutoScriptToLang attribute that children inherit, but the attribute name and inheritance rules are still open, so settle them with maintainers first. Done means the marked element keeps its text unsplit while unmarked text is still processed.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Having autoScriptToLang globally is quite a fine function, but for some elements in the document, it might be a need to have only one language set for it so proper font is used and no language determination is done.
Example:
<body>
<table>
<tr>
<td lang="ja">ンターJA健康ー康</td>
</tr>
</table>
<div>Hello 健康</div>
</body>
Currently, it's split into something like:
<body>
<table>
<tr>
<td lang="ja"><span lang="ja">ンタ</span>ーJA<span lang="und-Hans">健康ー康</span></td>
</tr>
</table>
<div>Hello <span lang="und-Hans">健康</span></div>
</body>
Where a more desired output would be:
<body>
<table>
<tr>
<td lang="ja">ンターJA健康ー康</td>
</tr>
</table>
<div>Hello <span lang="und-Hans">健康</span></div> <!-- process only this -->
</body>
I was thinking about some attribute on element level, e.g. disableAutoScriptToLang which will be taken into the account only if autoScriptToLang is set to true in mpdf configuration. It might work also on hierarchy level, so it means that this attribute will apply to all children elements too. In HTML template it might look like:
<body>
<table>
<tr>
<td lang="ja" disableAutoScriptToLang>ンターJA健康ー康</td>
</tr>
</table>
<div>Hello 健康</div>
</body>
- Vorherrschende Sprache
- PHP
- Sterne
- 4.7k
- Forks
- 1.1k
- Ø Merge
- 6 T. 11 Std.
- Gemergte PRs (30 T.)
- 4
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus mpdf/mpdf
-
SVG path arcs with an explicit zero radius throw DivisionByZeroErrorEvtl. vergeben @Syed-Shehroz-Sohail hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 5 Tagen
-
Closing a column set with an image in it leaves the cursor below the page, wasting the rest of itOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 5 Tagen
-
8.3: Local fallback for external stylesheets is inverted in CssLoader (basepathIsLocal check negated) — CSS silently dropped when remote fetch failsEvtl. vergeben @hemreduru hat das vor 12 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 5 Tagen
-
Tag/Td.php silently clears cell top/bottom borders when a row has a partial border (plus two warnings and a deprecation)Evtl. vergeben @alizamani1616 hat das vor 61 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 5 Tagen
-
AdjustHTML() collapses multiple spaces inside quoted attribute values (src, href)Evtl. vergeben @sornapudisuresh hat das vor 130 Tagen übernommen. Offenbug/fix help wanted HTML/CSS support
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
mpdf/mpdf#2208 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 5 Tagen
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
sync-en
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Перевод устарел
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
follow-up
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag