All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix common misspellings
@ 2010-09-14  1:32 Lucas De Marchi
  2010-09-14  1:35 ` Marcel Holtmann
  2010-09-14  3:21 ` [PATCH] Fix common misspellings Gu, Yang
  0 siblings, 2 replies; 16+ messages in thread
From: Lucas De Marchi @ 2010-09-14  1:32 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 12072 bytes --]

Apply to all files the list of common misspellings found at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines.

From the list cited above, the substitution found the following
misspellings:

accomodate->accommodate
fomr->from
priviledge->privilege
proprietory->proprietary
reponsible->responsible
seperately->separately
subsidary(-ies)->subsidiary(-ies)
succeded->succeeded
targetted->targeted
transfering->transferring
witheld->withheld
withold->withhold

Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
---
 TODO                            |    4 ++--
 doc/call-settings-api.txt       |    6 +++---
 doc/ofono-paper.txt             |    4 ++--
 doc/voicecallmanager-api.txt    |    2 +-
 drivers/atmodem/voicecall.c     |    2 +-
 drivers/hfpmodem/voicecall.c    |    2 +-
 drivers/isimodem/gpds.h         |    2 +-
 drivers/isimodem/gprs-context.c |    2 +-
 drivers/isimodem/gprs.c         |    2 +-
 drivers/stemodem/voicecall.c    |    2 +-
 gatchat/gatppp.c                |    2 +-
 gatchat/gsmdial.c               |    2 +-
 gatchat/test-server.c           |    2 +-
 gisi/client.c                   |    2 +-
 gisi/server.c                   |    2 +-
 src/util.c                      |    2 +-
 16 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/TODO b/TODO
index d41df04..d5d9082 100644
--- a/TODO
+++ b/TODO
@@ -26,7 +26,7 @@ SMS
   Proposed solution is to convert such messages to HTML and embed image /
   sound data as embedded MIME in the generated HTML stream.  The EMS messages
   will have to be detected (by the presence of particular tags in the SMS)
-  and signaled seperately from simple SMS messages.
+  and signaled separately from simple SMS messages.
 
   Priority: Low
   Complexity: C8
@@ -136,7 +136,7 @@ SIM / SIM File system
   Priority: Low
   Complexity: C2
 
-- Support proprietory extensions for SIM PIN retry counter.  Most vendors
+- Support proprietary extensions for SIM PIN retry counter.  Most vendors
   provide an extension commands to obtain such a retry counter for PINs and
   PUKs.  Need to enable this as a property in oFono.
 
diff --git a/doc/call-settings-api.txt b/doc/call-settings-api.txt
index a345b9c..e98ce0c 100644
--- a/doc/call-settings-api.txt
+++ b/doc/call-settings-api.txt
@@ -47,7 +47,7 @@ Properties	string CallingLinePresentation [readonly]
 			Contains the value of the connected line identification
 			restriction property. The value indicates the state of
 			the COLR supplementary service in the network.  If
-			enabled, the network will withold subscriber number
+			enabled, the network will withhold subscriber number
 			information from the calling party on incoming calls.
 			The possible values are:
 				"disabled",
@@ -77,12 +77,12 @@ Properties	string CallingLinePresentation [readonly]
 		string HideCallerId [readwrite]
 
 			Sets whether the ID of the caller will should be
-			provided or witheld for outgoing calls.  This setting
+			provided or withheld for outgoing calls.  This setting
 			is also modified by the status of the CLIR supplementary
 			service in the network (see the CallingLineRestriction
 			property).  The three possible values are:
 				"default" - Uses the network setting
-				"enabled" - CLIR invoked, caller id is witheld
+				"enabled" - CLIR invoked, caller id is withheld
 				"disabled" - CLIR suppressed, caller id is
 						provided
 
diff --git a/doc/ofono-paper.txt b/doc/ofono-paper.txt
index df3f0b3..ec6d01b 100644
--- a/doc/ofono-paper.txt
+++ b/doc/ofono-paper.txt
@@ -7,7 +7,7 @@ Linux and other open source components are now used extensively on both desktop
 and mobile embedded devices.  They provide networking, power management,
 database and other core OS infrastructure.  However, up to this point no
 viable open source solution for mobile telephony existed.  oFono aims to
-change that; it is a telephony host stack specifically targetted at both
+change that; it is a telephony host stack specifically targeted at both
 mobile embedded and desktop systems.
 
 Launched on May 11, 2009 oFono aims to provide a solid framework for builidng
@@ -97,7 +97,7 @@ for low-level operations.  This interface is based on 3GPP TS 27.007 "AT
 command set for User Equipment" and 3GPP TS 27.005 "DTE-DCE interface for SMS
 and CBS".  oFono assumes that all operations are fully asynchronous.
 
-This means that oFono can accomodate a wide variety of devices, including
+This means that oFono can accommodate a wide variety of devices, including
 full-featured modems (AT command based and otherwise), data-only cards, and
 modem like devices (e.g. Bluetooth Handsfree and Sim Access Profile devices,
 etc.)
diff --git a/doc/voicecallmanager-api.txt b/doc/voicecallmanager-api.txt
index 620720f..11af23a 100644
--- a/doc/voicecallmanager-api.txt
+++ b/doc/voicecallmanager-api.txt
@@ -34,7 +34,7 @@ Methods		array{object,dict} GetCalls()
 
 			Joins the currently Active (or Outgoing, depending
 			on network support) and Held calls together and
-			disconnects both calls. In effect transfering
+			disconnects both calls. In effect transferring
 			one party to the other. This procedure requires
 			an Active and Held call and the Explicit Call Transfer
 			(ECT) supplementary service to be active.
diff --git a/drivers/atmodem/voicecall.c b/drivers/atmodem/voicecall.c
index eaf3a95..7c788f4 100644
--- a/drivers/atmodem/voicecall.c
+++ b/drivers/atmodem/voicecall.c
@@ -508,7 +508,7 @@ static void at_transfer(struct ofono_voicecall *vc,
 	unsigned int transfer = 0x1 | 0x2;
 
 	/* Transfer can puts held & active calls together and disconnects
-	 * from both.  However, some networks support transfering of
+	 * from both.  However, some networks support transferring of
 	 * dialing/ringing calls as well.
 	 */
 	transfer |= 0x4 | 0x8;
diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index 8ae4430..e96ec7c 100644
--- a/drivers/hfpmodem/voicecall.c
+++ b/drivers/hfpmodem/voicecall.c
@@ -562,7 +562,7 @@ static void hfp_transfer(struct ofono_voicecall *vc,
 {
 	struct voicecall_data *vd = ofono_voicecall_get_data(vc);
 	/* Transfer can puts held & active calls together and disconnects
-	 * from both.  However, some networks support transfering of
+	 * from both.  However, some networks support transferring of
 	 * dialing/ringing calls as well.
 	 */
 	unsigned int transfer = 0x1 | 0x2 | 0x4 | 0x8;
diff --git a/drivers/isimodem/gpds.h b/drivers/isimodem/gpds.h
index 9bb60e6..a62c47b 100644
--- a/drivers/isimodem/gpds.h
+++ b/drivers/isimodem/gpds.h
@@ -1,7 +1,7 @@
 /*
  * This file is part of oFono - Open Source Telephony
  *
- * Copyright (C) 2010  Nokia Corporation and/or its subsidary(-ies).
+ * Copyright (C) 2010  Nokia Corporation and/or its subsidiary(-ies).
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
diff --git a/drivers/isimodem/gprs-context.c b/drivers/isimodem/gprs-context.c
index 9fdc677..8144940 100644
--- a/drivers/isimodem/gprs-context.c
+++ b/drivers/isimodem/gprs-context.c
@@ -1,7 +1,7 @@
 /*
  * This file is part of oFono - Open Source Telephony
  *
- * Copyright (C) 2010  Nokia Corporation and/or its subsidary(-ies).
+ * Copyright (C) 2010  Nokia Corporation and/or its subsidiary(-ies).
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
diff --git a/drivers/isimodem/gprs.c b/drivers/isimodem/gprs.c
index 93786ec..adac374 100644
--- a/drivers/isimodem/gprs.c
+++ b/drivers/isimodem/gprs.c
@@ -1,7 +1,7 @@
 /*
  * This file is part of oFono - Open Source Telephony
  *
- * Copyright (C) 2010  Nokia Corporation and/or its subsidary(-ies).
+ * Copyright (C) 2010  Nokia Corporation and/or its subsidiary(-ies).
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
diff --git a/drivers/stemodem/voicecall.c b/drivers/stemodem/voicecall.c
index 5cf38bb..6b43ebd 100644
--- a/drivers/stemodem/voicecall.c
+++ b/drivers/stemodem/voicecall.c
@@ -340,7 +340,7 @@ static void ste_transfer(struct ofono_voicecall *vc,
 	unsigned int transfer = 0x1 | 0x2;
 
 	/* Transfer can puts held & active calls together and disconnects
-	 * from both.  However, some networks support transfering of
+	 * from both.  However, some networks support transferring of
 	 * dialing/ringing calls as well.
 	 */
 	transfer |= 0x4 | 0x8;
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index 63508b5..5e875b8 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -51,7 +51,7 @@ enum ppp_phase {
 	PPP_PHASE_ESTABLISHMENT,	/* LCP started */
 	PPP_PHASE_AUTHENTICATION,	/* Auth started */
 	PPP_PHASE_NETWORK,		/* IPCP started */
-	PPP_PHASE_LINK_UP,		/* IPCP negotiation succeded, link up */
+	PPP_PHASE_LINK_UP,		/* IPCP negotiation succeeded, link up */
 	PPP_PHASE_TERMINATION,		/* LCP Terminate phase */
 };
 
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c
index 9aa2f79..57d0d9e 100644
--- a/gatchat/gsmdial.c
+++ b/gatchat/gsmdial.c
@@ -250,7 +250,7 @@ static void ppp_connect(const char *iface, const char *local, const char *peer,
 	g_print("Secondary DNS Server: %s\n", dns2);
 
 	if (getuid() != 0) {
-		g_print("Need root priviledge to config PPP interface\n");
+		g_print("Need root privilege to config PPP interface\n");
 		return;
 	}
 
diff --git a/gatchat/test-server.c b/gatchat/test-server.c
index 49012dc..c405f41 100644
--- a/gatchat/test-server.c
+++ b/gatchat/test-server.c
@@ -159,7 +159,7 @@ static gboolean setup_ppp(gpointer user)
 	GAtIO *io;
 
 	if (getuid() != 0) {
-		g_print("Need root priviledge for PPP connection\n");
+		g_print("Need root privilege for PPP connection\n");
 		return FALSE;
 	}
 
diff --git a/gisi/client.c b/gisi/client.c
index 24237b2..cf31447 100644
--- a/gisi/client.c
+++ b/gisi/client.c
@@ -525,7 +525,7 @@ void g_isi_request_cancel(GIsiRequest *req)
  * Subscribe to a given indication type for the resource that an ISI client
  * is associated with. If the same type was already subscribed, the old
  * subscription is overriden.
- * @param cl ISI client (fomr g_isi_client_create())
+ * @param cl ISI client (from g_isi_client_create())
  * @param type indication type
  * @param cb callback to process received indications
  * @param data data for the callback
diff --git a/gisi/server.c b/gisi/server.c
index 8be109d..ae252e1 100644
--- a/gisi/server.c
+++ b/gisi/server.c
@@ -253,7 +253,7 @@ int g_isi_vrespond(GIsiServer *self, const struct iovec *iov, size_t iovlen,
  * Prepare to handle given request type for the resource that an ISI server
  * is associated with. If the same type was already handled, the old
  * handler is overriden.
- * @param self ISI server (fomr g_isi_server_create())
+ * @param self ISI server (from g_isi_server_create())
  * @param type request message type
  * @param cb callback to process received requests
  * @param data data for the callback
diff --git a/src/util.c b/src/util.c
index bb90f6c..391bbb2 100644
--- a/src/util.c
+++ b/src/util.c
@@ -535,7 +535,7 @@ static unsigned short unicode_single_shift_lookup(unsigned short k,
  * GSM encoded string in items_read (if not NULL), not including the
  * terminator character. Returns the number of bytes written into the UTF8
  * encoded string in items_written (if not NULL) not including the terminal
- * '\0' character.  The caller is reponsible for freeing the returned value.
+ * '\0' character.  The caller is responsible for freeing the returned value.
  */
 char *convert_gsm_to_utf8_with_lang(const unsigned char *text, long len,
 					long *items_read, long *items_written,
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix common misspellings
  2010-09-14  1:32 [PATCH] Fix common misspellings Lucas De Marchi
@ 2010-09-14  1:35 ` Marcel Holtmann
  2010-09-14  2:32   ` Lucas De Marchi
  2010-09-14  3:21 ` [PATCH] Fix common misspellings Gu, Yang
  1 sibling, 1 reply; 16+ messages in thread
From: Marcel Holtmann @ 2010-09-14  1:35 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1698 bytes --]

Hi Lucas,

> Apply to all files the list of common misspellings found at
> http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines.
> 
> From the list cited above, the substitution found the following
> misspellings:
> 
> accomodate->accommodate
> fomr->from
> priviledge->privilege
> proprietory->proprietary
> reponsible->responsible
> seperately->separately
> subsidary(-ies)->subsidiary(-ies)
> succeded->succeeded
> targetted->targeted
> transfering->transferring
> witheld->withheld
> withold->withhold
> 
> Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>

no signed-off-by please. We don't use it.

> ---
>  TODO                            |    4 ++--
>  doc/call-settings-api.txt       |    6 +++---
>  doc/ofono-paper.txt             |    4 ++--
>  doc/voicecallmanager-api.txt    |    2 +-
>  drivers/atmodem/voicecall.c     |    2 +-
>  drivers/hfpmodem/voicecall.c    |    2 +-
>  drivers/isimodem/gpds.h         |    2 +-
>  drivers/isimodem/gprs-context.c |    2 +-
>  drivers/isimodem/gprs.c         |    2 +-
>  drivers/stemodem/voicecall.c    |    2 +-
>  gatchat/gatppp.c                |    2 +-
>  gatchat/gsmdial.c               |    2 +-
>  gatchat/test-server.c           |    2 +-
>  gisi/client.c                   |    2 +-
>  gisi/server.c                   |    2 +-
>  src/util.c                      |    2 +-
>  16 files changed, 20 insertions(+), 20 deletions(-)

While in general I am all for fixing spelling mistakes, but you need to
break this down into logical chunks. Just doing a mega patch that does
changes all over the place is not working out.

Regards

Marcel



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix common misspellings
  2010-09-14  1:35 ` Marcel Holtmann
@ 2010-09-14  2:32   ` Lucas De Marchi
  2010-09-14  2:37     ` Denis Kenzior
  0 siblings, 1 reply; 16+ messages in thread
From: Lucas De Marchi @ 2010-09-14  2:32 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 698 bytes --]

On Mon, Sep 13, 2010 at 10:35 PM, Marcel Holtmann <marcel@holtmann.org> wrote:
> no signed-off-by please. We don't use it.

Sorry, I forgot this project follows the same rules as for connman.

> While in general I am all for fixing spelling mistakes, but you need to
> break this down into logical chunks. Just doing a mega patch that does
> changes all over the place is not working out.

How do you want me to split this patch? In my opinion it's not that
big and it's almost only 1 change per file.  If the split is required,
I think the options are 1) per changed word or 2) per file or 3)
changes in documentation + changes in source files.

thanks

regards,
Lucas De Marchi

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix common misspellings
  2010-09-14  2:32   ` Lucas De Marchi
@ 2010-09-14  2:37     ` Denis Kenzior
  2010-09-14  3:06       ` [PATCH 1/6] Fix common misspellings in documentation Lucas De Marchi
                         ` (5 more replies)
  0 siblings, 6 replies; 16+ messages in thread
From: Denis Kenzior @ 2010-09-14  2:37 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 934 bytes --]

Hi Lucas,

On 09/13/2010 09:32 PM, Lucas De Marchi wrote:
> On Mon, Sep 13, 2010 at 10:35 PM, Marcel Holtmann <marcel@holtmann.org> wrote:
>> no signed-off-by please. We don't use it.
> 
> Sorry, I forgot this project follows the same rules as for connman.
> 
>> While in general I am all for fixing spelling mistakes, but you need to
>> break this down into logical chunks. Just doing a mega patch that does
>> changes all over the place is not working out.
> 
> How do you want me to split this patch? In my opinion it's not that
> big and it's almost only 1 change per file.  If the split is required,
> I think the options are 1) per changed word or 2) per file or 3)
> changes in documentation + changes in source files.
> 

Can you split them 1 / directory?  E.g.

- patch for files in gatchat/
- patch for files in doc/
- patch for files in drivers/
- patch for files in gisi

etc

Regards,
-Denis

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 1/6] Fix common misspellings in documentation
  2010-09-14  2:37     ` Denis Kenzior
@ 2010-09-14  3:06       ` Lucas De Marchi
  2010-09-14  3:06       ` [PATCH 2/6] Fix common misspellings in drivers Lucas De Marchi
                         ` (4 subsequent siblings)
  5 siblings, 0 replies; 16+ messages in thread
From: Lucas De Marchi @ 2010-09-14  3:06 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 3763 bytes --]

Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines.

From the list cited above, the substitution script found the following
misspellings:

accomodate->accommodate
targetted->targeted
transfering->transferring
witheld->withheld
withold->withhold
---
 doc/call-settings-api.txt    |    6 +++---
 doc/ofono-paper.txt          |    4 ++--
 doc/voicecallmanager-api.txt |    2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/doc/call-settings-api.txt b/doc/call-settings-api.txt
index a345b9c..e98ce0c 100644
--- a/doc/call-settings-api.txt
+++ b/doc/call-settings-api.txt
@@ -47,7 +47,7 @@ Properties	string CallingLinePresentation [readonly]
 			Contains the value of the connected line identification
 			restriction property. The value indicates the state of
 			the COLR supplementary service in the network.  If
-			enabled, the network will withold subscriber number
+			enabled, the network will withhold subscriber number
 			information from the calling party on incoming calls.
 			The possible values are:
 				"disabled",
@@ -77,12 +77,12 @@ Properties	string CallingLinePresentation [readonly]
 		string HideCallerId [readwrite]
 
 			Sets whether the ID of the caller will should be
-			provided or witheld for outgoing calls.  This setting
+			provided or withheld for outgoing calls.  This setting
 			is also modified by the status of the CLIR supplementary
 			service in the network (see the CallingLineRestriction
 			property).  The three possible values are:
 				"default" - Uses the network setting
-				"enabled" - CLIR invoked, caller id is witheld
+				"enabled" - CLIR invoked, caller id is withheld
 				"disabled" - CLIR suppressed, caller id is
 						provided
 
diff --git a/doc/ofono-paper.txt b/doc/ofono-paper.txt
index df3f0b3..ec6d01b 100644
--- a/doc/ofono-paper.txt
+++ b/doc/ofono-paper.txt
@@ -7,7 +7,7 @@ Linux and other open source components are now used extensively on both desktop
 and mobile embedded devices.  They provide networking, power management,
 database and other core OS infrastructure.  However, up to this point no
 viable open source solution for mobile telephony existed.  oFono aims to
-change that; it is a telephony host stack specifically targetted at both
+change that; it is a telephony host stack specifically targeted at both
 mobile embedded and desktop systems.
 
 Launched on May 11, 2009 oFono aims to provide a solid framework for builidng
@@ -97,7 +97,7 @@ for low-level operations.  This interface is based on 3GPP TS 27.007 "AT
 command set for User Equipment" and 3GPP TS 27.005 "DTE-DCE interface for SMS
 and CBS".  oFono assumes that all operations are fully asynchronous.
 
-This means that oFono can accomodate a wide variety of devices, including
+This means that oFono can accommodate a wide variety of devices, including
 full-featured modems (AT command based and otherwise), data-only cards, and
 modem like devices (e.g. Bluetooth Handsfree and Sim Access Profile devices,
 etc.)
diff --git a/doc/voicecallmanager-api.txt b/doc/voicecallmanager-api.txt
index 620720f..11af23a 100644
--- a/doc/voicecallmanager-api.txt
+++ b/doc/voicecallmanager-api.txt
@@ -34,7 +34,7 @@ Methods		array{object,dict} GetCalls()
 
 			Joins the currently Active (or Outgoing, depending
 			on network support) and Held calls together and
-			disconnects both calls. In effect transfering
+			disconnects both calls. In effect transferring
 			one party to the other. This procedure requires
 			an Active and Held call and the Explicit Call Transfer
 			(ECT) supplementary service to be active.
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 2/6] Fix common misspellings in drivers
  2010-09-14  2:37     ` Denis Kenzior
  2010-09-14  3:06       ` [PATCH 1/6] Fix common misspellings in documentation Lucas De Marchi
@ 2010-09-14  3:06       ` Lucas De Marchi
  2010-09-14  5:08         ` Marcel Holtmann
  2010-09-14  3:06       ` [PATCH 3/6] Fix common misspellings in gatchat Lucas De Marchi
                         ` (3 subsequent siblings)
  5 siblings, 1 reply; 16+ messages in thread
From: Lucas De Marchi @ 2010-09-14  3:06 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 3984 bytes --]

Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines.

From the list cited above, the substitution script found the following
misspellings:

subsidary(-ies)->subsidiary(-ies)
transfering->transferring
---
 drivers/atmodem/voicecall.c     |    2 +-
 drivers/hfpmodem/voicecall.c    |    2 +-
 drivers/isimodem/gpds.h         |    2 +-
 drivers/isimodem/gprs-context.c |    2 +-
 drivers/isimodem/gprs.c         |    2 +-
 drivers/stemodem/voicecall.c    |    2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/atmodem/voicecall.c b/drivers/atmodem/voicecall.c
index eaf3a95..7c788f4 100644
--- a/drivers/atmodem/voicecall.c
+++ b/drivers/atmodem/voicecall.c
@@ -508,7 +508,7 @@ static void at_transfer(struct ofono_voicecall *vc,
 	unsigned int transfer = 0x1 | 0x2;
 
 	/* Transfer can puts held & active calls together and disconnects
-	 * from both.  However, some networks support transfering of
+	 * from both.  However, some networks support transferring of
 	 * dialing/ringing calls as well.
 	 */
 	transfer |= 0x4 | 0x8;
diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index 8ae4430..e96ec7c 100644
--- a/drivers/hfpmodem/voicecall.c
+++ b/drivers/hfpmodem/voicecall.c
@@ -562,7 +562,7 @@ static void hfp_transfer(struct ofono_voicecall *vc,
 {
 	struct voicecall_data *vd = ofono_voicecall_get_data(vc);
 	/* Transfer can puts held & active calls together and disconnects
-	 * from both.  However, some networks support transfering of
+	 * from both.  However, some networks support transferring of
 	 * dialing/ringing calls as well.
 	 */
 	unsigned int transfer = 0x1 | 0x2 | 0x4 | 0x8;
diff --git a/drivers/isimodem/gpds.h b/drivers/isimodem/gpds.h
index 9bb60e6..a62c47b 100644
--- a/drivers/isimodem/gpds.h
+++ b/drivers/isimodem/gpds.h
@@ -1,7 +1,7 @@
 /*
  * This file is part of oFono - Open Source Telephony
  *
- * Copyright (C) 2010  Nokia Corporation and/or its subsidary(-ies).
+ * Copyright (C) 2010  Nokia Corporation and/or its subsidiary(-ies).
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
diff --git a/drivers/isimodem/gprs-context.c b/drivers/isimodem/gprs-context.c
index 9fdc677..8144940 100644
--- a/drivers/isimodem/gprs-context.c
+++ b/drivers/isimodem/gprs-context.c
@@ -1,7 +1,7 @@
 /*
  * This file is part of oFono - Open Source Telephony
  *
- * Copyright (C) 2010  Nokia Corporation and/or its subsidary(-ies).
+ * Copyright (C) 2010  Nokia Corporation and/or its subsidiary(-ies).
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
diff --git a/drivers/isimodem/gprs.c b/drivers/isimodem/gprs.c
index 93786ec..adac374 100644
--- a/drivers/isimodem/gprs.c
+++ b/drivers/isimodem/gprs.c
@@ -1,7 +1,7 @@
 /*
  * This file is part of oFono - Open Source Telephony
  *
- * Copyright (C) 2010  Nokia Corporation and/or its subsidary(-ies).
+ * Copyright (C) 2010  Nokia Corporation and/or its subsidiary(-ies).
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
diff --git a/drivers/stemodem/voicecall.c b/drivers/stemodem/voicecall.c
index 5cf38bb..6b43ebd 100644
--- a/drivers/stemodem/voicecall.c
+++ b/drivers/stemodem/voicecall.c
@@ -340,7 +340,7 @@ static void ste_transfer(struct ofono_voicecall *vc,
 	unsigned int transfer = 0x1 | 0x2;
 
 	/* Transfer can puts held & active calls together and disconnects
-	 * from both.  However, some networks support transfering of
+	 * from both.  However, some networks support transferring of
 	 * dialing/ringing calls as well.
 	 */
 	transfer |= 0x4 | 0x8;
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 3/6] Fix common misspellings in gatchat
  2010-09-14  2:37     ` Denis Kenzior
  2010-09-14  3:06       ` [PATCH 1/6] Fix common misspellings in documentation Lucas De Marchi
  2010-09-14  3:06       ` [PATCH 2/6] Fix common misspellings in drivers Lucas De Marchi
@ 2010-09-14  3:06       ` Lucas De Marchi
  2010-09-14  3:06       ` [PATCH 4/6] Fix common misspelling in gisi Lucas De Marchi
                         ` (2 subsequent siblings)
  5 siblings, 0 replies; 16+ messages in thread
From: Lucas De Marchi @ 2010-09-14  3:06 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1788 bytes --]

Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines.

From the list cited above, the substitution script found the following
misspellings:

priviledge->privilege
succeded->succeeded
---
 gatchat/gatppp.c      |    2 +-
 gatchat/gsmdial.c     |    2 +-
 gatchat/test-server.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index 63508b5..5e875b8 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -51,7 +51,7 @@ enum ppp_phase {
 	PPP_PHASE_ESTABLISHMENT,	/* LCP started */
 	PPP_PHASE_AUTHENTICATION,	/* Auth started */
 	PPP_PHASE_NETWORK,		/* IPCP started */
-	PPP_PHASE_LINK_UP,		/* IPCP negotiation succeded, link up */
+	PPP_PHASE_LINK_UP,		/* IPCP negotiation succeeded, link up */
 	PPP_PHASE_TERMINATION,		/* LCP Terminate phase */
 };
 
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c
index 9aa2f79..57d0d9e 100644
--- a/gatchat/gsmdial.c
+++ b/gatchat/gsmdial.c
@@ -250,7 +250,7 @@ static void ppp_connect(const char *iface, const char *local, const char *peer,
 	g_print("Secondary DNS Server: %s\n", dns2);
 
 	if (getuid() != 0) {
-		g_print("Need root priviledge to config PPP interface\n");
+		g_print("Need root privilege to config PPP interface\n");
 		return;
 	}
 
diff --git a/gatchat/test-server.c b/gatchat/test-server.c
index 49012dc..c405f41 100644
--- a/gatchat/test-server.c
+++ b/gatchat/test-server.c
@@ -159,7 +159,7 @@ static gboolean setup_ppp(gpointer user)
 	GAtIO *io;
 
 	if (getuid() != 0) {
-		g_print("Need root priviledge for PPP connection\n");
+		g_print("Need root privilege for PPP connection\n");
 		return FALSE;
 	}
 
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 4/6] Fix common misspelling in gisi
  2010-09-14  2:37     ` Denis Kenzior
                         ` (2 preceding siblings ...)
  2010-09-14  3:06       ` [PATCH 3/6] Fix common misspellings in gatchat Lucas De Marchi
@ 2010-09-14  3:06       ` Lucas De Marchi
  2010-09-14  3:06       ` [PATCH 5/6] Fix common misspellings in TODO file Lucas De Marchi
  2010-09-14  3:06       ` [PATCH 6/6] Fix common misspelling in source files Lucas De Marchi
  5 siblings, 0 replies; 16+ messages in thread
From: Lucas De Marchi @ 2010-09-14  3:06 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1606 bytes --]

Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines.

From the list cited above, the substitution script found the following
misspelling:

fomr->from
---
 gisi/client.c |    2 +-
 gisi/server.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gisi/client.c b/gisi/client.c
index 24237b2..cf31447 100644
--- a/gisi/client.c
+++ b/gisi/client.c
@@ -525,7 +525,7 @@ void g_isi_request_cancel(GIsiRequest *req)
  * Subscribe to a given indication type for the resource that an ISI client
  * is associated with. If the same type was already subscribed, the old
  * subscription is overriden.
- * @param cl ISI client (fomr g_isi_client_create())
+ * @param cl ISI client (from g_isi_client_create())
  * @param type indication type
  * @param cb callback to process received indications
  * @param data data for the callback
diff --git a/gisi/server.c b/gisi/server.c
index 8be109d..ae252e1 100644
--- a/gisi/server.c
+++ b/gisi/server.c
@@ -253,7 +253,7 @@ int g_isi_vrespond(GIsiServer *self, const struct iovec *iov, size_t iovlen,
  * Prepare to handle given request type for the resource that an ISI server
  * is associated with. If the same type was already handled, the old
  * handler is overriden.
- * @param self ISI server (fomr g_isi_server_create())
+ * @param self ISI server (from g_isi_server_create())
  * @param type request message type
  * @param cb callback to process received requests
  * @param data data for the callback
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 5/6] Fix common misspellings in TODO file
  2010-09-14  2:37     ` Denis Kenzior
                         ` (3 preceding siblings ...)
  2010-09-14  3:06       ` [PATCH 4/6] Fix common misspelling in gisi Lucas De Marchi
@ 2010-09-14  3:06       ` Lucas De Marchi
  2010-09-14  3:06       ` [PATCH 6/6] Fix common misspelling in source files Lucas De Marchi
  5 siblings, 0 replies; 16+ messages in thread
From: Lucas De Marchi @ 2010-09-14  3:06 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1229 bytes --]

Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines.

From the list cited above, the substitution script found the following
misspellings:

proprietory->proprietary
seperately->separately
---
 TODO |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/TODO b/TODO
index d41df04..d5d9082 100644
--- a/TODO
+++ b/TODO
@@ -26,7 +26,7 @@ SMS
   Proposed solution is to convert such messages to HTML and embed image /
   sound data as embedded MIME in the generated HTML stream.  The EMS messages
   will have to be detected (by the presence of particular tags in the SMS)
-  and signaled seperately from simple SMS messages.
+  and signaled separately from simple SMS messages.
 
   Priority: Low
   Complexity: C8
@@ -136,7 +136,7 @@ SIM / SIM File system
   Priority: Low
   Complexity: C2
 
-- Support proprietory extensions for SIM PIN retry counter.  Most vendors
+- Support proprietary extensions for SIM PIN retry counter.  Most vendors
   provide an extension commands to obtain such a retry counter for PINs and
   PUKs.  Need to enable this as a property in oFono.
 
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 6/6] Fix common misspelling in source files
  2010-09-14  2:37     ` Denis Kenzior
                         ` (4 preceding siblings ...)
  2010-09-14  3:06       ` [PATCH 5/6] Fix common misspellings in TODO file Lucas De Marchi
@ 2010-09-14  3:06       ` Lucas De Marchi
  5 siblings, 0 replies; 16+ messages in thread
From: Lucas De Marchi @ 2010-09-14  3:06 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1057 bytes --]

Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines.

From the list cited above, the substitution script found the following
misspelling:

reponsible->responsible
---
 src/util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/util.c b/src/util.c
index bb90f6c..391bbb2 100644
--- a/src/util.c
+++ b/src/util.c
@@ -535,7 +535,7 @@ static unsigned short unicode_single_shift_lookup(unsigned short k,
  * GSM encoded string in items_read (if not NULL), not including the
  * terminator character. Returns the number of bytes written into the UTF8
  * encoded string in items_written (if not NULL) not including the terminal
- * '\0' character.  The caller is reponsible for freeing the returned value.
+ * '\0' character.  The caller is responsible for freeing the returned value.
  */
 char *convert_gsm_to_utf8_with_lang(const unsigned char *text, long len,
 					long *items_read, long *items_written,
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* RE: [PATCH] Fix common misspellings
  2010-09-14  1:32 [PATCH] Fix common misspellings Lucas De Marchi
  2010-09-14  1:35 ` Marcel Holtmann
@ 2010-09-14  3:21 ` Gu, Yang
  2010-09-14 22:36   ` Lucas De Marchi
  1 sibling, 1 reply; 16+ messages in thread
From: Gu, Yang @ 2010-09-14  3:21 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1065 bytes --]

Hi,


>-----Original Message-----
>From: ofono-bounces(a)ofono.org [mailto:ofono-bounces(a)ofono.org] On Behalf Of
>Lucas De Marchi
>Sent: Tuesday, September 14, 2010 9:33 AM
>To: ofono(a)ofono.org
>Subject: [PATCH] Fix common misspellings
>
>Apply to all files the list of common misspellings found at
>http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines.
>
From the list cited above, the substitution found the following
>misspellings:
>
>accomodate->accommodate
>fomr->from
>priviledge->privilege
>proprietory->proprietary
>reponsible->responsible
>seperately->separately
>subsidary(-ies)->subsidiary(-ies)
>succeded->succeeded
>targetted->targeted
>transfering->transferring
>witheld->withheld
>withold->withhold

This is an interesting patch. I guess you must have some tool/script to help you find all the misspellings against this list. Could you please share the tool/script? After all, we can check the code in the future as this kind of mistake may happen from time to time.


Regards,
-Yang

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH 2/6] Fix common misspellings in drivers
  2010-09-14  3:06       ` [PATCH 2/6] Fix common misspellings in drivers Lucas De Marchi
@ 2010-09-14  5:08         ` Marcel Holtmann
  2010-09-14  6:51           ` Aki Niemi
  0 siblings, 1 reply; 16+ messages in thread
From: Marcel Holtmann @ 2010-09-14  5:08 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 475 bytes --]

Hi Lucas,

> - * Copyright (C) 2010  Nokia Corporation and/or its subsidary(-ies).
> + * Copyright (C) 2010  Nokia Corporation and/or its subsidiary(-ies).

for these kind of changes, I prefer if you have buy in from the Nokia
guys. Some companies have strict rules on the copyright header. I know
that with Intel we try to follow them consistently for all projects. So
if Nokia wants to "misspell" this, then that is fine with me actually.

Regards

Marcel



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH 2/6] Fix common misspellings in drivers
  2010-09-14  5:08         ` Marcel Holtmann
@ 2010-09-14  6:51           ` Aki Niemi
  2010-09-14  7:02             ` Marcel Holtmann
  0 siblings, 1 reply; 16+ messages in thread
From: Aki Niemi @ 2010-09-14  6:51 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 631 bytes --]

Hi,

2010/9/14 Marcel Holtmann <marcel@holtmann.org>:
> Hi Lucas,
>
>> - * Copyright (C) 2010  Nokia Corporation and/or its subsidary(-ies).
>> + * Copyright (C) 2010  Nokia Corporation and/or its subsidiary(-ies).
>
> for these kind of changes, I prefer if you have buy in from the Nokia
> guys. Some companies have strict rules on the copyright header. I know
> that with Intel we try to follow them consistently for all projects. So
> if Nokia wants to "misspell" this, then that is fine with me actually.

This is a real misspelling; in other places in the source tree it is
spelled correctly.

Cheers,
Aki

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH 2/6] Fix common misspellings in drivers
  2010-09-14  6:51           ` Aki Niemi
@ 2010-09-14  7:02             ` Marcel Holtmann
  0 siblings, 0 replies; 16+ messages in thread
From: Marcel Holtmann @ 2010-09-14  7:02 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 657 bytes --]

Hi Aki,

> >> - * Copyright (C) 2010  Nokia Corporation and/or its subsidary(-ies).
> >> + * Copyright (C) 2010  Nokia Corporation and/or its subsidiary(-ies).
> >
> > for these kind of changes, I prefer if you have buy in from the Nokia
> > guys. Some companies have strict rules on the copyright header. I know
> > that with Intel we try to follow them consistently for all projects. So
> > if Nokia wants to "misspell" this, then that is fine with me actually.
> 
> This is a real misspelling; in other places in the source tree it is
> spelled correctly.

fair enough. And all of the patches have been pushed now.

Regards

Marcel



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH] Fix common misspellings
  2010-09-14  3:21 ` [PATCH] Fix common misspellings Gu, Yang
@ 2010-09-14 22:36   ` Lucas De Marchi
  2010-09-15  5:26     ` Gu, Yang
  0 siblings, 1 reply; 16+ messages in thread
From: Lucas De Marchi @ 2010-09-14 22:36 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1568 bytes --]

Hi,

On Tue, Sep 14, 2010 at 12:21 AM, Gu, Yang <yang.gu@intel.com> wrote:
> This is an interesting patch. I guess you must have some tool/script to help you find all the misspellings against this list. Could you please share the tool/script? After all, we can check the code in the future as this kind of mistake may happen from time to time.

Yes, I use a script I made based on the format of misspelling
corrections available at wikipedia. I've uploaded the 3 files I used
to http://people.profusion.mobi/~lucas/playground/

First, and most important: fix-typos.sh. It reads from stdin the words
to fix in the following format:

word->correction

If there is more than 1 possible fix, use a "," in the end of the
correction. In that case it will output to stderr the suggestions
instead of automatically fixing.

The second file, typos.txt, is the dictionary, based on that of
wikipedia. I prepared it paying attention to some problematic words
and suggestions from other projects (mainly EFL and Linux kernel)

The third file is a script to get the changed words in the format I
used in commit message. It needs to be in a git repository in order to
work.


I usually run like this:

~/bin/fix-typos.sh 2>&1 > /tmp/log.txt < ~/tmp/typos.txt | tee /tmp/log2.txt

In /tmp/log.txt will be the progress of the substitutions. It will
print it word it's searching for.
In /tmp/log2.txt will be the fixes made and suggestions about other
words that can be manually fixed later.


I hope this helps.



regards

Lucas De Marchi

^ permalink raw reply	[flat|nested] 16+ messages in thread

* RE: [PATCH] Fix common misspellings
  2010-09-14 22:36   ` Lucas De Marchi
@ 2010-09-15  5:26     ` Gu, Yang
  0 siblings, 0 replies; 16+ messages in thread
From: Gu, Yang @ 2010-09-15  5:26 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1289 bytes --]

Hi


>
>Yes, I use a script I made based on the format of misspelling
>corrections available at wikipedia. I've uploaded the 3 files I used
>to http://people.profusion.mobi/~lucas/playground/
>
>First, and most important: fix-typos.sh. It reads from stdin the words
>to fix in the following format:
>
>word->correction
>
>If there is more than 1 possible fix, use a "," in the end of the
>correction. In that case it will output to stderr the suggestions
>instead of automatically fixing.
>
>The second file, typos.txt, is the dictionary, based on that of
>wikipedia. I prepared it paying attention to some problematic words
>and suggestions from other projects (mainly EFL and Linux kernel)
>
>The third file is a script to get the changed words in the format I
>used in commit message. It needs to be in a git repository in order to
>work.
>
>
>I usually run like this:
>
>~/bin/fix-typos.sh 2>&1 > /tmp/log.txt < ~/tmp/typos.txt | tee /tmp/log2.txt
>
>In /tmp/log.txt will be the progress of the substitutions. It will
>print it word it's searching for.
>In /tmp/log2.txt will be the fixes made and suggestions about other
>words that can be manually fixed later.
>
>
>I hope this helps.

Thanks for sharing the useful scripts!

Regards,
-Yang

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-09-15  5:26 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-14  1:32 [PATCH] Fix common misspellings Lucas De Marchi
2010-09-14  1:35 ` Marcel Holtmann
2010-09-14  2:32   ` Lucas De Marchi
2010-09-14  2:37     ` Denis Kenzior
2010-09-14  3:06       ` [PATCH 1/6] Fix common misspellings in documentation Lucas De Marchi
2010-09-14  3:06       ` [PATCH 2/6] Fix common misspellings in drivers Lucas De Marchi
2010-09-14  5:08         ` Marcel Holtmann
2010-09-14  6:51           ` Aki Niemi
2010-09-14  7:02             ` Marcel Holtmann
2010-09-14  3:06       ` [PATCH 3/6] Fix common misspellings in gatchat Lucas De Marchi
2010-09-14  3:06       ` [PATCH 4/6] Fix common misspelling in gisi Lucas De Marchi
2010-09-14  3:06       ` [PATCH 5/6] Fix common misspellings in TODO file Lucas De Marchi
2010-09-14  3:06       ` [PATCH 6/6] Fix common misspelling in source files Lucas De Marchi
2010-09-14  3:21 ` [PATCH] Fix common misspellings Gu, Yang
2010-09-14 22:36   ` Lucas De Marchi
2010-09-15  5:26     ` Gu, Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.