<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Emir SARI skreiv 03.08.2024 00:19:<br>
</div>
<blockquote type="cite"
cite="mid:C1631BB0-6659-422A-A688-603DFFC94D4F@icloud.com"><span
style="white-space: pre-wrap">
</span>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Yes, HTML text is annoying. But I find that the colouring of the HTML tags very useful to distinguish markup from (often translatable) text.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Colouring is nice, but something like easy keyboard navigation between strings to translate would be invaluable in terms of saving time.</pre>
</blockquote>
<p>I think implementing something like this wouldn’t be *too* difficult (that is, for someone familiar with C++, Qt and Lokalize’s codebase…). Basically, one would just have to create an action that skips to the next piece of text matching the regular expression ‘>\w’ (a > character followed by a an alphanumeric character).</p>
<p>BTW, are you familiar with the keyboard shortcuts ‘Ctrl+M’ and ‘Ctrl+T’ in Lokalize?</p>
<p>Ctrl+M: Insert next tag
Ctrl+T: Insert tag (with the next selected as the default)</p>
<p>A ‘tag’ is here an HTML tag (including attributes), but also other placeholders, like %1. This is very useful when editing strings with HTML.</p>
<p>
</p>
<span style="white-space: pre-wrap">
</span><span style="white-space: pre-wrap">
</span>
<blockquote type="cite"
cite="mid:C1631BB0-6659-422A-A688-603DFFC94D4F@icloud.com">
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">6. Option to disable automatic completion. Never use it. Slows me a lot.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
This has been implemented since February 2010, just a few months after the autocompletion feature was first implemented (<a class="moz-txt-link-freetext" href="https://bugs.kde.org/show_bug.cgi?id=227399">https://bugs.kde.org/show_bug.cgi?id=227399</a>). I don’t use the feature (found it annoying) and have always had it disabled.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
How do we disable it?</pre>
</blockquote>
<p>Settings → Configure Lokalize → Editing → Minimum word length for word completion</p>
<p>Set this to the minimum value, 2 (which changes to text to ‘Disable word completion’). It’s not very intuitive, but it is explained in the tooltip for this option.
</p>
<p><span style="white-space: pre-wrap">
</span><span style="white-space: pre-wrap">
</span></p>
<blockquote type="cite"
cite="mid:C1631BB0-6659-422A-A688-603DFFC94D4F@icloud.com">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">An option to ignore tags could be useful, but, personally, I sometimes find it useful to search for (if not *in* HTML tags).
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
I was recently changing all the single and double quotes and the other ASCII characters with their Unicode equivalents, and it is really hard to automate it with the HTML tags in equation.</pre>
</blockquote>
<p>I see that there already is a ‘Skip markup’ option in the ‘Find’ dialog. However, it doesn’t seem to actually work (or I haven’t understood what it’s supposed to do).</p>
<p>But be careful in trying to automate this anyway. There are some cases where the quotes have special meaning. For example, dolphin.po has this string:</p>
<p> 'One Week Ago' (MMMM, yyyy)</p>
<p>And the context marker says:</p>
<p> @title:group Date: MMMM is full month name in current locale,
and yyyy is full year number. You must keep the ' don't use any fancy
" or « or similar. The ' is not shown to the user, it's there to mark a part
of the text that should not be formatted as a date
<style type="text/css">p, li { white-space: pre-wrap; }hr { height: 1px; border-width: 0; }li.unchecked::marker { content: "\2610"; }li.checked::marker { content: "\2612"; }</style></p>
<p>So one would have to manually check each replacement.
</p>
<p>
</p>
<pre class="moz-signature" cols="72">--
Karl Ove Hufthammer</pre>
</body>
</html>