Add option to disable autoScriptToLang on certain elements if wanted
Mantenedores costumam responder em até 5 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 32/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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>
- Linguagem predominante
- PHP
- Estrelas
- 4.7k
- Forks
- 1.1k
- Merge médio
- 6d 11h
- PRs com merge (30d)
- 4
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de mpdf/mpdf
-
SVG path arcs with an explicit zero radius throw DivisionByZeroErrorTalvez já em andamento @Syed-Shehroz-Sohail assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 5 dias
-
Closing a column set with an image in it leaves the cursor below the page, wasting the rest of itAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 5 dias
-
8.3: Local fallback for external stylesheets is inverted in CssLoader (basepathIsLocal check negated) — CSS silently dropped when remote fetch failsTalvez já em andamento @hemreduru assumiu há 12 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 5 dias
-
Tag/Td.php silently clears cell top/bottom borders when a row has a partial border (plus two warnings and a deprecation)Talvez já em andamento @alizamani1616 assumiu há 61 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 5 dias
-
AdjustHTML() collapses multiple spaces inside quoted attribute values (src, href)Talvez já em andamento @sornapudisuresh assumiu há 130 dias. Abertabug/fix help wanted HTML/CSS support
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
mpdf/mpdf#2208 · 1 comentário ·
Mantenedores costumam responder em até 5 dias
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
-
sync-en
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 2 dias
-
Перевод устарел
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
follow-up
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia