Re: Unicode characters showing encircled alphanumerics
On 2020-12-09, Pavel Sanda wrote: > On Tue, Dec 08, 2020 at 09:47:53PM -, Guenter Milde wrote: >> The various answers to >> https://tex.stackexchange.com/questions/7032/good-way-to-make-textcircled-numbers >> show, that there is no global winner. >> * \raisebox{.5pt}{\textcircled{\raisebox{-.9pt} {8}}} >> * \usepackage{pifont} >> \ding{172}--\ding{181} % seriffed fonts >> \ding{192}--\ding{201} % sans-seriffed fonts >> * \usepackage{igo} >> \whitestone{1}--\whitestone{99} >> * \usepackage{tikz} >>\newcommand*\circled[1]{\tikz[baseline=(char.base)]{ >>\node[shape=circle,draw,inner sep=2pt] (char) {#1};}} >>\begin{document} >>Numbers aligned with the text: \circled{1} \circled{2} \circled{3} end. >>\end{document} >> One could consider providing a set of alias macros >> \textcircleda ... \textcircledz >> with fallback definitions to allow customability by a power user. > Thanks for the research. This seems getting complicated, what is your gut > feeling about the whole proposal now? Should we try to introduce it all? In my view, the rule given in lib/unicodesymbols # Do only add commands that give correct output, no hacks that look "similar". # Commands that modify other parts of the text should not be added either. implies that we should not force one of the above workarounds. However, the problem of alternative workarounds with different mileage to different users/situations may require a more generic solution: We could consider making the lib/unicodesymbols replacements more modular, allowing a ~/.lyx/unicodesymbols to be partial and only update the LyX default. This could be put even more forward with per-document additions. For the related problem # Commands that modify other parts of the text should not be added # either. For this reason, all commands requiring txfonts, pxfonts, # fourier, mathdesign and MnSymbol are commented out (these packages # switch to fonts like times or palatino). mathabx is not used because of # many clashes with AMS math. we could introduce package-dependent replacements that are only activated when the required packages are already loaded by (or compatible to) the document. Günter -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Unicode characters showing encircled alphanumerics
On Wed, Dec 9, 2020 at 8:41 AM Pavel Sanda wrote: > On Tue, Dec 08, 2020 at 09:47:53PM -, Guenter Milde wrote: > > The various answers to > > > https://tex.stackexchange.com/questions/7032/good-way-to-make-textcircled-numbers > > show, that there is no global winner. > > > > * \raisebox{.5pt}{\textcircled{\raisebox{-.9pt} {8}}} > > > > * \usepackage{pifont} > > > > \ding{172}--\ding{181} % seriffed fonts > > \ding{192}--\ding{201} % sans-seriffed fonts > > > > * \usepackage{igo} > > \whitestone{1}--\whitestone{99} > > > > * \usepackage{tikz} > >\newcommand*\circled[1]{\tikz[baseline=(char.base)]{ > >\node[shape=circle,draw,inner sep=2pt] (char) {#1};}} > >\begin{document} > >Numbers aligned with the text: \circled{1} \circled{2} \circled{3} > end. > >\end{document} > > > > > > One could consider providing a set of alias macros > > > > \textcircleda ... \textcircledz > > > > with fallback definitions to allow customability by a power user. > > Thanks for the research. This seems getting complicated, what is your gut > feeling about the whole proposal now? Should we try to introduce it all? > I've taken the TikZ approach also (e.g., https://www.sciencedirect.com/science/article/pii/S0021999120307713#se0170) after having found it the most suitable for my needs. If this were built in, it'd be nice. However, I'm concerned that anything implemented won't serve someone and also that they may be lost with how they might need to adjust it to their needs. One potential middle ground (that may be unsatisfactory): provide an "advanced" snippets manual that demonstrates these types of things? This goes against LyX's general philosophy, but it may be a helpful compromise that's closer to the client than a wiki, etc. - Joel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Unicode characters showing encircled alphanumerics
On Tue, Dec 08, 2020 at 09:47:53PM -, Guenter Milde wrote: > The various answers to > https://tex.stackexchange.com/questions/7032/good-way-to-make-textcircled-numbers > show, that there is no global winner. > > * \raisebox{.5pt}{\textcircled{\raisebox{-.9pt} {8}}} > > * \usepackage{pifont} > > \ding{172}--\ding{181} % seriffed fonts > \ding{192}--\ding{201} % sans-seriffed fonts > > * \usepackage{igo} > \whitestone{1}--\whitestone{99} > > * \usepackage{tikz} >\newcommand*\circled[1]{\tikz[baseline=(char.base)]{ >\node[shape=circle,draw,inner sep=2pt] (char) {#1};}} >\begin{document} >Numbers aligned with the text: \circled{1} \circled{2} \circled{3} end. >\end{document} > > > One could consider providing a set of alias macros > > \textcircleda ... \textcircledz > > with fallback definitions to allow customability by a power user. Thanks for the research. This seems getting complicated, what is your gut feeling about the whole proposal now? Should we try to introduce it all? Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Unicode characters showing encircled alphanumerics
On 2020-12-07, Pavel Sanda wrote: > On Mon, Dec 07, 2020 at 04:55:42PM +0100, Guenter Milde wrote: >> > I just used these the other day, via mathed. So I would think they are >> > useful at least sometimes... >> While useful sometimes, we should check whether this does more harm than >> good, especially with fonts other than CM or LM. > Would you mind checking that? I am in no way pushing this patch and if > you think it's not good idea we leave it as it is... The various answers to https://tex.stackexchange.com/questions/7032/good-way-to-make-textcircled-numbers show, that there is no global winner. * \raisebox{.5pt}{\textcircled{\raisebox{-.9pt} {8}}} * \usepackage{pifont} \ding{172}--\ding{181} % seriffed fonts \ding{192}--\ding{201} % sans-seriffed fonts * \usepackage{igo} \whitestone{1}--\whitestone{99} * \usepackage{tikz} \newcommand*\circled[1]{\tikz[baseline=(char.base)]{ \node[shape=circle,draw,inner sep=2pt] (char) {#1};}} \begin{document} Numbers aligned with the text: \circled{1} \circled{2} \circled{3} end. \end{document} One could consider providing a set of alias macros \textcircleda ... \textcircledz with fallback definitions to allow customability by a power user. Günter -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Unicode characters showing encircled alphanumerics
On Mon, Dec 07, 2020 at 04:55:42PM +0100, Guenter Milde wrote: > > I just used these the other day, via mathed. So I would think they are > > useful at least sometimes... > > While useful sometimes, we should check whether this does more harm than > good, especially with fonts other than CM or LM. Would you mind checking that? I am in no way pushing this patch and if you think it's not good idea we leave it as it is... Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Unicode characters showing encircled alphanumerics
On 7.12.20, Richard Kimberly Heck wrote: > On 12/7/20 10:29 AM, Pavel Sanda wrote: > > Hi, > > > > this is presumably for Guenter. > > > > I found somewhat outdated patch which unfortuntaely never made it to this > > list > > on time. Its for unicodesymbols allowing unicode characters showing > > encircled > > alphanumerics, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=724820 > > . > > The diff against old 2.0.x is attached, to update it against the current > > version might not be that hard. > > > > Is this worth adding to our codebase? > I just used these the other day, via mathed. So I would think they are > useful at least sometimes... While useful sometimes, we should check whether this does more harm than good, especially with fonts other than CM or LM. Günter -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Unicode characters showing encircled alphanumerics
On Mon, Dec 07, 2020 at 10:47:13AM -0500, Richard Kimberly Heck wrote: > > I found somewhat outdated patch which unfortuntaely never made it to this > > list > > on time. Its for unicodesymbols allowing unicode characters showing > > encircled > > alphanumerics, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=724820 > > . > > The diff against old 2.0.x is attached, to update it against the current > > version might not be that hard. > > > > Is this worth adding to our codebase? > > I just used these the other day, via mathed. So I would think they are > useful at least sometimes... This probably means that one column in unicodesymbols should contain some math equivalent for each character? In any case I am not sure what should be in the flags and preamble columns, this patch is from times we did not have those. Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Unicode characters showing encircled alphanumerics
On 12/7/20 10:29 AM, Pavel Sanda wrote: > Hi, > > this is presumably for Guenter. > > I found somewhat outdated patch which unfortuntaely never made it to this list > on time. Its for unicodesymbols allowing unicode characters showing encircled > alphanumerics, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=724820 . > The diff against old 2.0.x is attached, to update it against the current > version might not be that hard. > > Is this worth adding to our codebase? I just used these the other day, via mathed. So I would think they are useful at least sometimes... Riki -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Unicode characters showing encircled alphanumerics
Hi, this is presumably for Guenter. I found somewhat outdated patch which unfortuntaely never made it to this list on time. Its for unicodesymbols allowing unicode characters showing encircled alphanumerics, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=724820 . The diff against old 2.0.x is attached, to update it against the current version might not be that hard. Is this worth adding to our codebase? Pavel --- lib/unicodesymbols 2020-12-07 16:17:48.727230983 +0100 +++ /tmp/unicode 2020-12-07 16:18:25.719412815 +0100 @@ -1845,6 +1845,85 @@ # 0x2422 "\\textblank" "textcomp" "" # BLANK SYMBOL 0x2423 "\\textvisiblespace" "textcomp" "" # OPEN BOX + +# +# circled letters +# +#0x24c7 "\\textcircled{\small{R}}}" "textcomp" "" # CIRCLED CAPITAL R +0x24ea "\\textcircled{\footnotesize{0}}" "textcomp" "" # CIRCLED DIGIT 0 +0x2460 "\\textcircled{\footnotesize{1}}" "textcomp" "" # CIRCLED DIGIT 1 +0x2461 "\\textcircled{\footnotesize{2}}" "textcomp" "" # CIRCLED DIGIT 2 +0x2462 "\\textcircled{\footnotesize{3}}" "textcomp" "" # CIRCLED DIGIT 3 +0x2463 "\\textcircled{\footnotesize{4}}" "textcomp" "" # CIRCLED DIGIT 4 +0x2464 "\\textcircled{\footnotesize{5}}" "textcomp" "" # CIRCLED DIGIT 5 +0x2465 "\\textcircled{\footnotesize{6}}" "textcomp" "" # CIRCLED DIGIT 6 +0x2466 "\\textcircled{\footnotesize{7}}" "textcomp" "" # CIRCLED DIGIT 7 +0x2467 "\\textcircled{\footnotesize{8}}" "textcomp" "" # CIRCLED DIGIT 8 +0x2468 "\\textcircled{\footnotesize{9}}" "textcomp" "" # CIRCLED DIGIT 9 +0x2469 "\\textcircled{\footnotesize{10}}" "textcomp" "" # CIRCLED NUMBER 10 +0x246a "\\textcircled{\footnotesize{11}}" "textcomp" "" # CIRCLED NUMBER 11 +0x246b "\\textcircled{\footnotesize{12}}" "textcomp" "" # CIRCLED NUMBER 12 +0x246c "\\textcircled{\footnotesize{13}}" "textcomp" "" # CIRCLED NUMBER 13 +0x246d "\\textcircled{\footnotesize{14}}" "textcomp" "" # CIRCLED NUMBER 14 +0x246e "\\textcircled{\footnotesize{15}}" "textcomp" "" # CIRCLED NUMBER 15 +0x246f "\\textcircled{\footnotesize{16}}" "textcomp" "" # CIRCLED NUMBER 16 +0x2470 "\\textcircled{\footnotesize{17}}" "textcomp" "" # CIRCLED NUMBER 17 +0x2471 "\\textcircled{\footnotesize{18}}" "textcomp" "" # CIRCLED NUMBER 18 +0x2472 "\\textcircled{\footnotesize{19}}" "textcomp" "" # CIRCLED NUMBER 19 +0x2473 "\\textcircled{\footnotesize{20}}" "textcomp" "" # CIRCLED NUMBER 20 +0x24b6 "\\textcircled{\footnotesize{A}}" "textcomp" "" # CIRCLED CAPITAL A +0x24b7 "\\textcircled{\footnotesize{B}}" "textcomp" "" # CIRCLED CAPITAL B +0x24b8 "\\textcircled{\footnotesize{C}}" "textcomp" "" # CIRCLED CAPITAL C +0x24b9 "\\textcircled{\footnotesize{D}}" "textcomp" "" # CIRCLED CAPITAL D +0x24ba "\\textcircled{\footnotesize{E}}" "textcomp" "" # CIRCLED CAPITAL E +0x24bb "\\textcircled{\footnotesize{F}}" "textcomp" "" # CIRCLED CAPITAL F +0x24bc "\\textcircled{\footnotesize{G}}" "textcomp" "" # CIRCLED CAPITAL G +0x24bd "\\textcircled{\footnotesize{H}}" "textcomp" "" # CIRCLED CAPITAL H +0x24be "\\textcircled{\footnotesize{I}}" "textcomp" "" # CIRCLED CAPITAL I +0x24bf "\\textcircled{\footnotesize{J}}" "textcomp" "" # CIRCLED CAPITAL J +0x24c0 "\\textcircled{\footnotesize{K}}" "textcomp" "" # CIRCLED CAPITAL K +0x24c1 "\\textcircled{\footnotesize{L}}" "textcomp" "" # CIRCLED CAPITAL L +0x24c2 "\\textcircled{\footnotesize{M}}" "textcomp" "" # CIRCLED CAPITAL M +0x24c3 "\\textcircled{\footnotesize{N}}" "textcomp" "" # CIRCLED CAPITAL N +0x24c4 "\\textcircled{\footnotesize{O}}"