어플리케이션에서 기본 언어 설정 바꾸기

August 29th, 2008

나의 맥 환경은 언어 설정을 영어로 해 두었다. 소위 말하는 영문 상위인데..

가끔 어떤 어플리케이션은 언어 설정을 한글로 해야만 동작하는 경우가 있는데..

그 대표적인 것이 신한은행 인터넷뱅킹이다..

(맥에서 인터넷 뱅킹이 된다는 사실만으로도 감사하긴 하쥐..)

여튼.. 영문 상위인 MacOSX 시스템에서, 특정 어플리케이션을 한글 상위로 동작하게 하는 방법은..

1. KoreanSwitcher라는 어플리케이션을 이용하는 방법이 있다.

(출처: Albireo’s )

그런데 이는 특정 어플리케이션에서만 되는 단점이 있다.

아마도 한글 사용에 있어서 문제가 되는 어플리케이션을 중심으로만 되게 설정해 둔 것 같다. 

2. 이 단점을 극복한 것이 바로 터미널에서 아래와 같이 실행하는 것이다.

예를 들어 신한은행 인터넷 뱅킹을 한글 언어로 동작시키려면 다음과 같이 하면 된다.

$ defaults write -app EzPlus2 AppleLanguages “(ko)”

단, 신한은행 인터넷 뱅킹 어플리케이션 이름을  EzPlus2로 해놓고, 어플리케이션이 /Application 폴더에 있어야 한다.

( 출처 :  Clien MacOS 소모임 )

License

August 14th, 2008

Authors

When uploading an article you need to be aware of the risks and legal issues involved. We live in a litigious world so you need to protect yourself against those seeking damages against you for problems that may (or may not) have been caused by your article. Just saying “The code is free for use” is no longer enough. What does “free” mean? Are there any restrictions? What happens if your code breaks my system and costs me money?

Below are a list of licenses that we at The Code Project support for article contributions. The main points to think about are:

  1. What restrictions do I want to impose on my code?
  2. How much do I wish to protect myself and my readers (licenses go both ways)

Please review the licenses below when deciding which license to attach to your article.

Those downloading Code and using Articles

Always ensure that the License attached to an article is suitable for your uses. If in doubt contact the author directly to seek clarification from the author.

The Licenses

The following is a rough guide to the current licenses supported on The Code Project. Please read them carefully by following the links to the license pages themselves because some categorisations (such as whether code can be used commercially, or whether extensions must be release to the public) depends on the situtation. This is merely a guide: it’s up to you to read the actual license carefully before using code licensed by each license or assigned a license to code you submit.

The Code Project Open License (CPOL)

The main points subject to the terms of the License are:

  • Source Code and Executable Files can be used in commercial applications;
  • Source Code and Executable Files can be redistributed; and
  • Source Code can be modified to create derivative works.
  • No claim of suitability, guarantee, or any warranty whatsoever is provided. The software is provided “as-is”.

Provides copyright protection: True
Can be used in commercial applications: True
Bug fixes / extensions must be released to the public domain: False
Provides an explicit patent license: True
Can be used in proprietary (closed source) applications: True
Is a viral licence: False

The Common Development and Distribution License (CDDL)

Based on the Mozilla Public License (MPL) that makes it more applicable for use outside the Mozilla Foundation.

Provides copyright protection: True
Can be used in commercial applications: True
Bug fixes / extensions must be released to the public domain: True
Provides an explicit patent license: True
Can be used in proprietary (closed source) applications: True
Is a viral licence: False

The Microsoft Public License (Ms-PL)

Used by Microsoft. Compiled derived code can be distributed, for both commercial and non-commercial use. If the source code is to be redistributed then a complete copy of this license must be included in the redistribution.

Provides copyright protection: True
Can be used in commercial applications: True
Bug fixes / extensions must be released to the public domain: False
Provides an explicit patent license: True
Can be used in proprietary (closed source) applications: True
Is a viral licence: False

The Mozilla Public License 1.1 (MPL 1.1)

Used by Mozilla and Firefox, among others. The patent clauses are not acceptable to some.

Provides copyright protection: True
Can be used in commercial applications: True
Bug fixes / extensions must be released to the public domain: True
Provides an explicit patent license: True
Can be used in proprietary (closed source) applications: True
Is a viral licence: False

The Common Public License Version 1.0 (CPL)

Derived from the IBM Public License and influenced by the Mozilla Public License, and used by some Microsoft projects on SourceForge.

Provides copyright protection: True
Can be used in commercial applications: True
Bug fixes / extensions must be released to the public domain: True
Provides an explicit patent license: True
Can be used in proprietary (closed source) applications: True
Is a viral licence: False

The Eclipse Public License 1.0

A newer version of the Common Public License that is in some cases more acceptable to business.

Provides copyright protection: True
Can be used in commercial applications: True
Bug fixes / extensions must be released to the public domain: True
Provides an explicit patent license: True
Can be used in proprietary (closed source) applications: True
Is a viral licence: False

The MIT License

A very old license with essentially no restrictions on the use of the code. It also provides very little in the way of protection for authors or users. It is the same as the BSD license without the ‘no endorsement’ clause.

Provides copyright protection: True
Can be used in commercial applications: True
Bug fixes / extensions must be released to the public domain: False
Provides an explicit patent license: False
Can be used in proprietary (closed source) applications: True
Is a viral licence: False

The BSD License

A very old license with essentially no restrictions on the use of the code. It also provides very little in the way of protection for authors or users. It is the same as the MIT license except that it includes a clause preventing the use of the author’s name for endorsement.

Provides copyright protection: True
Can be used in commercial applications: True
Bug fixes / extensions must be released to the public domain: False
Provides an explicit patent license: False
Can be used in proprietary (closed source) applications: True
Is a viral licence: False

The Apache License, Version 2.0

Slightly more restrictive (but still very open) version of the BSD or MIT license that adds patent clauses. Read carefully.

Provides copyright protection: True
Can be used in commercial applications: True
Bug fixes / extensions must be released to the public domain: False
Provides an explicit patent license: True
Can be used in proprietary (closed source) applications: True
Is a viral licence: False

The Creative Commons Attribution-ShareAlike 2.5 License

A license that requires a link be visible on works that use this license. “Share alike” is what it sounds, you can share this work as long as that work has a license similar to this one.

Provides copyright protection: True
Can be used in commercial applications: True
Bug fixes / extensions must be released to the public domain: False
Provides an explicit patent license: False
Can be used in proprietary (closed source) applications: False
Is a viral licence: True

The zlib/libpng License

A license with an emphasis on freedom of use and re-use, with a few restrictions.

Provides copyright protection: True
Can be used in commercial applications: True
Bug fixes / extensions must be released to the public domain: False
Provides an explicit patent license: False
Can be used in proprietary (closed source) applications: True
Is a viral licence: False

A Public Domain dedication

Not a license, but a dedication to the public domain. All rights are given up and anyone can do anything they wish with the code. Please note this is not a license and provides no guarantees for the user and no indemnities for the author.

Provides copyright protection: False
Can be used in commercial applications: True
Bug fixes / extensions must be released to the public domain: False
Provides an explicit patent license: False
Can be used in proprietary (closed source) applications: True
Is a viral licence: False

The GNU Lesser General Public License

A derivative of the GPL that was intended to allow non-GPL code to work with, and call GPL code. The author of this license asks that you only use this license if you are licensing functionality already commonly available.

Provides copyright protection: True
Can be used in commercial applications: True
Bug fixes / extensions must be released to the public domain: True
Provides an explicit patent license: False
Can be used in proprietary (closed source) applications: True
Is a viral licence: True

Example usage in your code

(Replace ‘Foobar’ with the name of your product)

This file is part of Foobar.

Foobar is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Foobar is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser Public License for more details.

You should have received a copy of the GNU Lesser Public License
along with Foobar.  If not, see <http://www.gnu.org/licenses/>.

The GNU General Public License (GPL)

A common but misunderstood license. This allows developers to freely use the software as long as they use the same (or an even less restrictive) license for parts of the program that they wrote themselves. Viral in nature. Read carefully and make sure you understand the implications of using this license. Unacceptable to many.

You can write commercial software using software licensed with the GPL, but you cannot write proprietarysoftware (meaning software for which the code is not freely available). You can sell GPL code, even though it’s already being given away, or you can sell services attached to the code such as support contracts.

Any software written using GPL’d code must itself be licensed using the GPL (or less restrictive license) meaning it cannot be proprietary. This means that many developers writing commercial software will not be able to use GPL code.

At the Code Project we prefer that developers allow other developers to use their freely given code in whatever way they wish – commercial, proprietary, or free for anyone. Our preference is that our authors do not use a GPL-like license.

Provides copyright protection: True
Can be used in commercial applications: True
Bug fixes / extensions must be released to the public domain: True
Provides an explicit patent license: False
Can be used in proprietary (closed source) applications: False
Is a viral licence: True

Example usage in your code

(Replace ‘Foobar’ with the name of your product)

This file is part of Foobar.

Foobar is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Foobar is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
from http://www.codeproject.com/info/Licenses.aspx

한글 폰트 맑은 고딕으로 바꾸기

July 8th, 2008

출처 카페 > 네이버 애플매킨토시유저그룹[.. | 맥허브
원문 http://cafe.naver.com/machub/1133

제 맥은 기본 언어로 영어가 설정되어 있어서, 세세한 명칭은 다를 수 있습니다.

기본방향 :
원하는 트루타입글꼴을 이름테이블만 변경해서 애플기본서체인 척 하게한다.

방법
1. http://developer.apple.com/textfonts/download/에서 Apple Font Tools를 받아설치합니다.

2. terminal창을 띄워서
ftxdumperfuser -t name malgun.ttf >> malgun.xml
로 이름테이블을 받아옵니다.

3. textedit로 malgun.xml을 읽어서 해당되는 항목을 AppleGothic에 맞게 다음처럼 모두 변경해줍니다.

Family, Full 항목 : AppleGothic
Style 항목: Regular
Unique 항목 : AppleGothic Regular
PostScript 항목 : AppleGothicRegular

4. ftxdumperfuser -t name -d malgun.xml malgun.ttf
로 이름을 갈아넣습니다. malgun.ttf를 확인해보면 AppleGothic의 Regular로 나타나 있을 것입니다.

5. 수정한 malgun.ttf파일을 ~/Library/Fonts또는 /Users/(맥아이디)/Library/Fonts에 넣습니다.

6. Font Book을 실행시켜서 좌측에 Computer를 선택, AppleGothic에서 우측마우스버튼, Add Fonts를 하고 수정한 malgun.ttf를 찾아 선택합니다.

7. 그러면 AppleGothic Regular값이 중복되어 나타납니다. 원래의 AppleGothic 글꼴을 찾아 오른쪽버튼 클릭 Disable시킵니다.

8. 재부팅하거나, 그게 귀찮으면 Finder창을 Relaunch시키고, 프로그램을 재작동시키면 그때부터 맑은 고딕이 적용됩니다.

9. 원하는 바에 따라 애플명조도 같은 방식으로 대체할 수 있고 Style도 Bold로 줄 수도 있습니다. 다른 ttf글꽅도 이와 같이 변경 가능합니다.

아직까지 별 이상없이 쓰고 있으나, 이상한 점이나 궁금하신 점 있으시면 물어보세요.
맥을 최근에 산 지라 사실 저도 잘 모르겠습니다. 앞으로 잘 부탁 드립니다.
_________________
소리가 좋은 사람입니다.