On Thu, 2013-02-14 at 23:51 +0530, Janit Anjaria wrote:
> https://issues.apache.org/ooo/show_bug.cgi?id=73090
> 
> 
> On Thu, Feb 14, 2013 at 11:44 PM, Janit Anjaria <[email protected]>
> wrote:
>         I am hereby pasting the snipet of code which is on line
>         1332<that is where i have added and commented it> in the
>         file : editeng/source/misc/svxacorr.cxx

Its very hard to tell what you're trying to do from snippets of inline
code. Better is a a "true" patch with comments as to "here I want to X".

Anyway, as far as I can see you just need to tweak
SvxAutoCorrect::FnCptlSttSntnc in editeng/source/misc/svxacorr.cxx which
is a fairly unreadable monster, but attached is a patch which should
help to indicate the right place to add the extra check for "is this a
word which follows after a likely abbreviation"

C.

>From 32b4ed64f6759b101371f247ca1fe30e2410ad2c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <[email protected]>
Date: Wed, 20 Feb 2013 15:38:45 +0000
Subject: [PATCH] fdo#42893 help for improve capitalize first letter

Change-Id: If35064d9482d07695bd3343992cd3b914b96630e
---
 editeng/source/misc/svxacorr.cxx | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 870d00b..c9b8bc9 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -910,6 +910,21 @@ sal_Bool SvxAutoCorrect::FnCptlSttSntnc( SvxAutoCorrDoc& rDoc,
     if( 2 > ( pStr - pStart ) )
         return sal_False;
 
+//start todo
+    //*pStr is the end of the last sentence
+    //pStr[6] = <space>
+    //pStr[5] = r
+    //pStr[4] = a
+    //pStr[3] = b           <-- we're wondering if we should capitalize this
+    //pStr[2] = <space>
+    //pStr[1] = .
+    //pStr[0] = o
+    //pStr[-1] = . <-- so if this is a "." return false
+    //pStr[-2] = o
+    //pStr[-3] = .
+    //pStr[-4] = F
+//end todo
+
     if( !rCC.isLetterNumeric(
             aText, sal::static_int_cast< xub_StrLen >( pStr-- - pStart ) ) )
     {
-- 
1.8.1.2

_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to