diff -r ebd48d2de13c -r ecbabf52600f fep/aknfep/src/aknfepinputstateminiqwertyzhuyinkeymap.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fep/aknfep/src/aknfepinputstateminiqwertyzhuyinkeymap.cpp Wed Sep 01 12:23:33 2010 +0100 @@ -0,0 +1,82 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0"" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: This file contains classes of phrase creation layout data management +* +*/ + + + + + + + + + + + + + +#include "aknfepinputstateminiqwertyzhuyinkeymap.h" +#include + +const TInt16 KZhuyinSymbolUnicode = 0x2462; + +_LIT(KToneMark1, "\x02D9"); +_LIT(KToneMark2, "\x02CA"); +_LIT(KToneMark3, "\x02C7"); +_LIT(KToneMark4, "\x02CB"); +_LIT(KToneMark5, "\x0020"); +_LIT(KRightBracket, "("); +_LIT(KLeftBracket, ")"); + +// --------------------------------------------------------------------------- +// TAknFepInputStateMiniQwertyZhuyinKeyMap::GetKeyStroke +// Get the key stroke. +// --------------------------------------------------------------------------- +// +void TAknFepInputStateMiniQwertyZhuyinKeyMap::GetKeyStroke( + CPtiEngine* aPtiEngine, TInt& aKey, TDes& aKeystroke ) + { + TBuf lowerdata; + aPtiEngine->MappingDataForKey( (TPtiKey)aKey, lowerdata, EPtiCaseLower ); + + TBuf<2> zhuyinStoke; + if ( lowerdata.Length( ) > 0 ) + { + for (TInt i=0; i