Re: Allow detection of words being in italic or not

2012-11-23 Thread Marco A.G.Pinto

  
  
Hello!
  
  LanguageTool is an extension for OpenOffice/Libre Office that
  allows grammatical suggestions.
  
  Its official page is: http://www.languagetool.org
  
  Kind regards,
     >Marco A.G.Pinto
   ---
  
  
  On 23-11-2012 03:41, Fan Zheng wrote:


  And you said you are creating something about Language Tools Rules for
Portuguese writing. Sorry for my stupid question that, what is the Language
Tool and its rules? How should it works?



-- 
  
  



Re: Allow detection of words being in italic or not

2012-11-22 Thread Rob Weir
On Thu, Nov 22, 2012 at 10:41 PM, Fan Zheng  wrote:
> hi Pinto:
>
>
> Very interesting suggestion! But let me clarify something.
>
> You mean, in some kind of language (in your case, the Portuguese for
> example), when you referring some characters or words from foreign
> languages, such characters and words should be marked as "italic" style,
> right?
>
> And you said you are creating something about Language Tools Rules for
> Portuguese writing. Sorry for my stupid question that, what is the Language
> Tool and its rules? How should it works?
>
> And more specifications, what do you exactly need? A series specified UNO
> APIs for marking/identifying/setting characters or words from foreign
> languages? Or the totally implementations inside the SW core functions
> which need not external UNO extension developing?
>
> In general, such behaviors is possible to be implemented inside AOO writer,
> identical words, customized context menu items, set italic font style...
> all of them. But here, my concern is, seems not all the languages have the
> same custom on showing words from foreign languages.  For example in
> Chinese, there is no such kind of custom. And in English, the italic font
> style is commonly indicates a book or article title which is referred
> inside. Which means, we need to know the exact range of languages that
> should apply this custom, before supplying the function you want.
>

We have this convention in English as well, in more formal writing styles.

This sounds like something that could be done via Smart Tags:

http://wiki.openoffice.org/wiki/Smart_Tags

But it would rely on a "dictionary" of foreign phrases.

There is a lot of interesting app dev work that could be done for
internal workflows.  For example, recognizing customer names or
account numbers, pr order numbers, or product codes, and automatically
adding hyperlinks to internal services related to those codes.

-Rob

>
> 在 2012/11/23 4:42 AM,"Marco A.G.Pinto" 写道:
>
>>  Hello Regina,
>>
>> I meant italic as a font style.
>>
>> For example, when I am writing a Portuguese document in Office 2010 and
>> write, for example, the word "e-mail", since it is not Portuguese, Office
>> 2010 underlines it in green and when we right click it, it says "make sure
>> Latin and foreign words are in italic" or something like that.
>>
>> I wanted this to be possible also in AOO using LanguageTool.
>>
>> I am creating the Portuguese rules in LanguageTool and I want things to be
>> as good or better than Office 2010.
>>
>> Thanks for your time!
>>
>> Kind regards,
>>   >Marco A.G.Pinto
>> ---
>>
>>
>> On 22-11-2012 20:15, Regina Henschel wrote:
>>
>> Do you mean "italic" as font type or as language?
>>
>> In what situation do you need it? In normal running AOO you can search for
>> language and for font type as well with the Find&Search dialog. In the file
>> itself it is more laborious. First you have to scan the styles to get the
>> names of those with the desired attribute and then you have to scan the
>> paragraphs and headings for span elements with that style name.
>>
>>
>>
>> --
>>


Re: Allow detection of words being in italic or not

2012-11-22 Thread Fan Zheng
hi Pinto:


Very interesting suggestion! But let me clarify something.

You mean, in some kind of language (in your case, the Portuguese for
example), when you referring some characters or words from foreign
languages, such characters and words should be marked as "italic" style,
right?

And you said you are creating something about Language Tools Rules for
Portuguese writing. Sorry for my stupid question that, what is the Language
Tool and its rules? How should it works?

And more specifications, what do you exactly need? A series specified UNO
APIs for marking/identifying/setting characters or words from foreign
languages? Or the totally implementations inside the SW core functions
which need not external UNO extension developing?

In general, such behaviors is possible to be implemented inside AOO writer,
identical words, customized context menu items, set italic font style...
all of them. But here, my concern is, seems not all the languages have the
same custom on showing words from foreign languages.  For example in
Chinese, there is no such kind of custom. And in English, the italic font
style is commonly indicates a book or article title which is referred
inside. Which means, we need to know the exact range of languages that
should apply this custom, before supplying the function you want.


在 2012/11/23 4:42 AM,"Marco A.G.Pinto" 写道:

>  Hello Regina,
>
> I meant italic as a font style.
>
> For example, when I am writing a Portuguese document in Office 2010 and
> write, for example, the word "e-mail", since it is not Portuguese, Office
> 2010 underlines it in green and when we right click it, it says "make sure
> Latin and foreign words are in italic" or something like that.
>
> I wanted this to be possible also in AOO using LanguageTool.
>
> I am creating the Portuguese rules in LanguageTool and I want things to be
> as good or better than Office 2010.
>
> Thanks for your time!
>
> Kind regards,
>   >Marco A.G.Pinto
> ---
>
>
> On 22-11-2012 20:15, Regina Henschel wrote:
>
> Do you mean "italic" as font type or as language?
>
> In what situation do you need it? In normal running AOO you can search for
> language and for font type as well with the Find&Search dialog. In the file
> itself it is more laborious. First you have to scan the styles to get the
> names of those with the desired attribute and then you have to scan the
> paragraphs and headings for span elements with that style name.
>
>
>
> --
>


Re: Allow detection of words being in italic or not

2012-11-22 Thread Marco A.G.Pinto

  
  
Hello Regina,
  
  I meant italic as a font style.
  
  For example, when I am writing a Portuguese document in Office
  2010 and write, for example, the word "e-mail", since it is not
  Portuguese, Office 2010 underlines it in green and when we right
  click it, it says "make sure Latin and foreign words are in
  italic" or something like that.
  
  I wanted this to be possible also in AOO using LanguageTool.
  
  I am creating the Portuguese rules in LanguageTool and I want
  things to be as good or better than Office 2010.
  
  Thanks for your time!
  
  Kind regards,
    >Marco A.G.Pinto
      ---
  
  
  On 22-11-2012 20:15, Regina Henschel wrote:

Do
  you mean "italic" as font type or as language?
  
  
  In what situation do you need it? In normal running AOO you can
  search for language and for font type as well with the
  Find&Search dialog. In the file itself it is more laborious.
  First you have to scan the styles to get the names of those with
  the desired attribute and then you have to scan the paragraphs and
  headings for span elements with that style name.
  
  



-- 
  
  



Re: Allow detection of words being in italic or not

2012-11-22 Thread Regina Henschel

Hi Marco,

Marco A.G.Pinto schrieb:

Hello!

On 22-11-2012 18:07, Rory O'Farrell wrote:

How would OpenOffice know if a word should be in italic or not? There are many
words in French and English which are the same, so one might get many false
changes if one used a dictionary of candidate words.


What I meant is that AOO doesn't need to know if words should be in italic or
not, but yes to inform LanguageTool if they are or not in italic, so that this
could be coded into LanguageTool.

Then, LanguageTool, according to its rules would suggest to use italics or not.


Do you mean "italic" as font type or as language?

In what situation do you need it? In normal running AOO you can search 
for language and for font type as well with the Find&Search dialog. In 
the file itself it is more laborious. First you have to scan the styles 
to get the names of those with the desired attribute and then you have 
to scan the paragraphs and headings for span elements with that style name.


Kind regards
Regina



Re: Allow detection of words being in italic or not

2012-11-22 Thread Marco A.G.Pinto

  
  
Hello!
  
  On 22-11-2012 18:07, Rory O'Farrell wrote:

How would OpenOffice know if a word should be in
  italic or not? There are many words in French and English which
  are the same, so one might get many false changes if one used a
  dictionary of candidate words.


What I meant is that AOO doesn't need to know if words should be in
italic or not, but yes to inform LanguageTool if they are or not in
italic, so that this could be coded into LanguageTool.

Then, LanguageTool, according to its rules would suggest to use
italics or not.

Thanks!

Kind regards,
   >Marco A.G.Pinto
 ---


-- 
  
  



Re: Allow detection of words being in italic or not

2012-11-22 Thread Rory O'Farrell
On Thu, 22 Nov 2012 17:52:44 +
"Marco A.G.Pinto"  wrote:

> Hello!
> 
> I few months ago I asked to the persons of LanguageTool if there was a 
> way of suggesting to change words to italic just like MS Office 2010 
> does (for example, for Latin terms or abroad words).
> 
> I was told it was not possible.
> 
> Is there a way of improving AOO 4.0 in order to make this possible?
> 
> Thanks!
> 
> Kind regards,
> >Marco A.G.Pinto
>   ---
> 
> 
> -- 
How would OpenOffice know if a word should be in italic or not?  There are many 
words in French and English which are the same, so one might get many false 
changes if one used a dictionary of candidate words.

In my own work, when writing, I select all foreign words as I write them, amd 
use Character Style "quotation" which turns them into italic (by its default 
definition).  I have found this useful, as in the case of some fonts the italic 
type is unpleasantly small on the line when I am setting in 10.5 pts (I suspect 
it is being reduced to 10 pts although telling me it is 10.5).  I just change 
the Character Style "quotation" to use 11pts and the page looks better.


-- 
Rory O'Farrell 


Allow detection of words being in italic or not

2012-11-22 Thread Marco A.G.Pinto

  
  
Hello!
  
  I few months ago I asked to the persons of LanguageTool if there
  was a way of suggesting to change words to italic just like MS
  Office 2010 does (for example, for Latin terms or abroad words).
  
  I was told it was not possible.
  
  Is there a way of improving AOO 4.0 in order to make this
  possible?
  
  Thanks!
  
  Kind regards,
     >Marco A.G.Pinto
   ---
  
  

--