all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Matsievskiy S.V." <seregaxvm.main@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 52599@debbugs.gnu.org
Subject: bug#52599: 29.0.50; Unproportional Unicode character scale in SVG overlay
Date: Sat, 18 Dec 2021 15:13:15 +0300	[thread overview]
Message-ID: <1f8f80c2574cc3c514575683152ef689c4295582.camel@gmail.com> (raw)
In-Reply-To: <83h7b6azlm.fsf@gnu.org>


[-- Attachment #1.1: Type: text/plain, Size: 1082 bytes --]

Attaching ELisp code

-- 
Best regards,
Sergey Matsievskiy


On Sat, 2021-12-18 at 14:04 +0200, Eli Zaretskii wrote:
> > From: "Matsievskiy S.V." <seregaxvm.main@gmail.com>
> > Date: Sat, 18 Dec 2021 14:50:41 +0300
> > 
> > When buffer contains SVG overlay with Unicode characters, changing
> > font
> > size via `text-scale-increase` and `text-scale-decrease` causes
> > these
> > Unicode characters to change size unproportionally to the Latin
> > characters. Their size changes faster: they shrink faster then
> > Latin
> > characters and they grow faster then Latin characters.
> > Example of the math equation containing Unicode characters with
> > different scale is showin in picture https://imgur.com/3Ul8i74.
> > 
> > Way to reproduce:
> 
> Could you please post the Lisp code as an attachment, not inline, and
> not in Org or Markdown format, but as plain Lisp code?  I tried to
> reproduce the problem, but the NBSP characters and probably something
> else in your mail made the image unreadable, so I couldn't
> investigate.
> 
> Thanks.

[-- Attachment #1.2: svgoverlay.el --]
[-- Type: text/x-emacs-lisp, Size: 4083 bytes --]

(let ((o (make-overlay 0 11)))
  (overlay-put o 'display
               (list (cons 'image
                           (list :type 'svg
                                 :data "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"15.639ex\" height=\"5.343ex\" style=\"vertical-align: -2.171ex;\" viewBox=\"0 -1365.4 6733.3 2300.3\" role=\"img\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" aria-labelledby=\"MathJax-SVG-1-Title\">
<title id=\"MathJax-SVG-1-Title\">\\newcommand{textup}[1]{#1}x^a_b\\quad x^б_ю\\quad\\frac{a}{а}\\quad\\frac{a}{Ì}</title>
<defs aria-hidden=\"true\">
<path stroke-width=\"1\" id=\"E1-MJMATHI-78\" d=\"M52 289Q59 331 106 386T222 442Q257 442 286 424T329 379Q371 442 430 442Q467 442 494 420T522 361Q522 332 508 314T481 292T458 288Q439 288 427 299T415 328Q415 374 465 391Q454 404 425 404Q412 404 406 402Q368 386 350 336Q290 115 290 78Q290 50 306 38T341 26Q378 26 414 59T463 140Q466 150 469 151T485 153H489Q504 153 504 145Q504 144 502 134Q486 77 440 33T333 -11Q263 -11 227 52Q186 -10 133 -10H127Q78 -10 57 16T35 71Q35 103 54 123T99 143Q142 143 142 101Q142 81 130 66T107 46T94 41L91 40Q91 39 97 36T113 29T132 26Q168 26 194 71Q203 87 217 139T245 247T261 313Q266 340 266 352Q266 380 251 392T217 404Q177 404 142 372T93 290Q91 281 88 280T72 278H58Q52 284 52 289Z\"></path>
<path stroke-width=\"1\" id=\"E1-MJMATHI-61\" d=\"M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z\"></path>
<path stroke-width=\"1\" id=\"E1-MJMATHI-62\" d=\"M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z\"></path>
</defs>
<g stroke=\"currentColor\" fill=\"currentColor\" stroke-width=\"0\" transform=\"matrix(1 0 0 -1 0 0)\" aria-hidden=\"true\">
 <use xlink:href=\"#E1-MJMATHI-78\" x=\"0\" y=\"0\"></use>
 <use transform=\"scale(0.707)\" xlink:href=\"#E1-MJMATHI-61\" x=\"809\" y=\"498\"></use>
 <use transform=\"scale(0.707)\" xlink:href=\"#E1-MJMATHI-62\" x=\"809\" y=\"-463\"></use>
<g transform=\"translate(2046,0)\">
 <use xlink:href=\"#E1-MJMATHI-78\" x=\"0\" y=\"0\"></use>
<g transform=\"translate(572,648)\">
<text font-family=\"monospace\" stroke=\"none\" transform=\"scale(50.74127551116547) matrix(1 0 0 -1 0 0)\">б</text>
</g>
<g transform=\"translate(572,-445)\">
<text font-family=\"monospace\" stroke=\"none\" transform=\"scale(50.74127551116547) matrix(1 0 0 -1 0 0)\">ю</text>
</g>
</g>
<g transform=\"translate(4150,0)\">
<g transform=\"translate(120,0)\">
<rect stroke=\"none\" width=\"551\" height=\"60\" x=\"0\" y=\"220\"></rect>
 <use transform=\"scale(0.707)\" xlink:href=\"#E1-MJMATHI-61\" x=\"125\" y=\"639\"></use>
<g transform=\"translate(60,-554)\">
<text font-family=\"monospace\" stroke=\"none\" transform=\"scale(50.74127551116547) matrix(1 0 0 -1 0 0)\">а</text>
</g>
</g>
</g>
<g transform=\"translate(5942,0)\">
<g transform=\"translate(120,0)\">
<rect stroke=\"none\" width=\"551\" height=\"60\" x=\"0\" y=\"220\"></rect>
 <use transform=\"scale(0.707)\" xlink:href=\"#E1-MJMATHI-61\" x=\"125\" y=\"639\"></use>
<g transform=\"translate(60,-554)\">
<text font-family=\"monospace\" stroke=\"none\" transform=\"scale(50.74127551116547) matrix(1 0 0 -1 0 0)\">Ì</text>
</g>
</g>
</g>
</g>
</svg>")))))

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2021-12-18 12:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-18 11:50 bug#52599: 29.0.50; Unproportional Unicode character scale in SVG overlay Matsievskiy S.V.
2021-12-18 12:04 ` Eli Zaretskii
2021-12-18 12:13   ` Matsievskiy S.V. [this message]
2021-12-18 12:51     ` Eli Zaretskii
2021-12-18 14:09       ` Matsievskiy S.V.
2021-12-20 16:31       ` Alan Third
2021-12-21 12:15         ` Matsievskiy S.V.
2021-12-21 20:55           ` Alan Third
2021-12-22  8:49             ` Matsievskiy S.V.
2022-01-21 13:36             ` Lars Ingebrigtsen
2021-12-19 11:15 ` Lars Ingebrigtsen
2021-12-19 11:55   ` Matsievskiy S.V.
2021-12-19 12:07     ` Lars Ingebrigtsen
2021-12-19 12:11   ` Stephen Berman
2021-12-19 12:13     ` Lars Ingebrigtsen
2021-12-19 14:31       ` Stephen Berman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1f8f80c2574cc3c514575683152ef689c4295582.camel@gmail.com \
    --to=seregaxvm.main@gmail.com \
    --cc=52599@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.