Content Editable
HTML5 에서는 어떤 엘러먼트라도 수정이 가능하다. 약간의 JavaScript 이벤트 핸들러들을 사용하는 것만로 당신은 웹페이지를 완전하고 빠른 리치-텍스트 에디터로 변형할 수 있다. 이 문서는 이런 기능성에 대하여 대략의 정보를 제공 한다.
Content editable 은 현재 브라우저들과 완전히 호환된다.
- Firefox 3.5+
- Firefox for Android 19+
- Chrome 4.0+
- Internet Explorer 5.5+ *
- Safari 3.1+
- Opera 9+
- iOS Safari 5.0+
- Android Browser 3.0+
- Opera Mobile 12.1+
- Chrome for Android 25+
Opera Mini 는 아직 지원되지 않는다.
*대부분의 html elements 를 지원 하지 않는다.
어떻게 작동 하는가?
contentEditable 속성을 HTML element 에서 true 로 설정하라. 이 속성은 대부분의 HTML elements 에 사용될 수 있다.
LocalStorage 를 이용한 JavaScript 와 합쳐진 작동 예제를 여기에서 볼 수 있다. 소스는 이곳에 있다.
Found a problem with this page?
Last modified: 2021년 7월 27일 , by MDN contributors
Your blueprint for a better internet.
Support
Our communities
Developers
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998– 2022 by individual mozilla.org contributors. Content available under a Creative Commons license.
[ver. 6.17.6] 초보자를 위한 렌파이 엔진 현지화 방법
렌파이는 영어 기반 비주얼노벨 제작 엔진입니다. 한글을 사용하기 위해서는 약간의 과정이 필요합니다.
렌파이 런처 한국어화
1. 렌파이를 다운로드 합니다.
2. 압축을 풀고 렌파이 설치 폴더에 있는 renpy.exe를 실행합니다.
3. 실행하면 렌파이 런처창이 뜹니다. 화면 우측 하단에 있는 Preferences 버튼을 선택합니다.
4. Language에서 Korean을 선택합니다.
5. 런처가 한국어로 번역되었습니다.
서식 한국어화
서식이란 렌파이에서 새로운 프로젝트를 만들 때마다 가져다 쓰는 렌파이 프로젝트의 기본 양식 같은 것입니다. 이 서식을 한국어화하면 한글을 사용하는 프로젝트를 만들 때 일일히 수정할 필요 없이 바로 게임 내에서 한글을 표시할 수 있게 됩니다.
1. 렌파이 런처를 열고 새 프로젝트 만들기 버튼을 누릅니다.
5. 프로젝트 이름을 입력(영어)한 뒤 엔터 키를 누릅니다.
6. 프로젝트 서식을 korean으로 선택한 뒤 계속하기 버튼을 누릅니다.
7. 원하는 테마를 선택하고 다음으로 버튼을 누릅니다.
8. 런처의 프로젝트 실행하기 버튼을 눌러 생성한 프로젝트를 Binomo에서 초보자를위한 안내서 실행해봅니다.
9. 한글 및 번역 내용이 정상 표시됩니다.
한글 입력기
렌파이에서 사용하는 SDL 1.2버전의 한계로 렌파이에서 텍스트를 입력받을 때 사용하는 renpy.input 함수는 한국어를 입력할 수 없습니다. 이런 불편을 해소하기 위해서 한글 입력기를 제작해서 배포하고 있습니다.
1. 버튼 이름 같은 걸 제 맘대로 수정하고 싶어요.
- 서식의 번역 자체를 수정하기
1. 렌파이 설치 폴더/templates/korean/game/tl/None/common.rpy와 screens.rpy 파일을 스크립트 에디터로 엽니다.
2. 스크립트 안에 적힌 한글을 수정합니다.
- 개인 프로젝트 파일의 번역을 수정하기
1. 렌파이 프로젝트 폴더/game/tl/None/common.rpy와 screens.rpy 파일을 스크립트 에디터로 엽니다.
2. 스크립트 안에 적힌 한글을 수정합니다.
2. 프로젝트에 사용된 폰트를 수정하고 싶어요.
- Binomo에서 초보자를위한 안내서 서식에서 사용되는 폰트 자체를 수정하기
1. 사용하고자 할 폰트를 렌파이 설치 폴더/templates/korean/game/tl/None 폴더에 넣어둡니다.
2. 렌파이 설치 폴더/templates/korean/game/options.rpy 파일을 스크립트 에디터로 엽니다.
3. style.default.font 와 style._default.font 의 등호 오른쪽에 있는 값을 원하는 폰트 파일 이름으로 수정합니다.
4. 변경된 서식은 런처에서 새로운 프로젝트를 만들 때 적용됩니다.
- 기존 서식을 이용해 생성된 프로젝트의 폰트를 수정하기
1. 사용하고자 할 폰트를 렌파이 프로젝트 폴더/game/tl/None 폴더에 넣어둡니다.
2. 렌파이 프로젝트 폴더/game/options.rpy 파일을 스크립트 에디터로 엽니다.
3. style.default.font 와 style._default.font 의 등호 오른쪽에 있는 값을 원하는 폰트 파일 이름으로 수정합니다.
1. 원래는 신버전이 업데이트 되어 기존방법등이 변경되면 기존 강의글을 개조해서 사용합니다만 기존 강의글이 난잡해진 관계로 글 정리할 겸 새로운 글을 작성합니다.
Hook의 규칙
Hook은 React 16.8에 새로 추가된 기능입니다. Hook은 class를 작성하지 않고도 state와 다른 React의 기능들을 사용할 수 있도록 해줍니다.
Hook은 JavaScript 함수입니다. 하지만 Hook을 사용할 때는 두 가지 규칙을 준수해야 합니다. 우리는 이러한 규칙들을 자동으로 강제하기 위한 linter 플러그인을 제공하고 있습니다.
최상위(at the Top Level)에서만 Hook을 호출해야 합니다
반복문, 조건문 혹은 중첩된 함수 내에서 Hook을 호출하지 마세요. 대신 early return이 실행되기 전에 항상 React 함수의 최상위(at the top level)에서 Hook을 호출해야 합니다. 이 규칙을 따르면 컴포넌트가 렌더링 될 때마다 항상 동일한 순서로 Hook이 호출되는 것이 보장됩니다. 이러한 점은 React가 useState 와 useEffect 가 Binomo에서 초보자를위한 안내서 여러 번 호출되는 중에도 Hook의 상태를 올바르게 유지할 수 있도록 해줍니다. 이 점에 대해서 궁금하다면 아래에서 자세히 설명해 드리겠습니다.Binomo에서 초보자를위한 안내서
오직 React 함수 내에서 Hook을 호출해야 합니다
Hook을 일반적인 JavaScript 함수에서 호출하지 마세요. 대신 아래와 같이 호출할 수 있습니다.
- ✅ React 함수 컴포넌트에서 Hook을 호출하세요.
- ✅ Custom Hook에서 Hook을 호출하세요. (다음 페이지에서 이 부분을 살펴볼 예정입니다)
이 규칙을 지키면 컴포넌트의 모든 상태 관련 로직을 소스코드에서 명확하게 보이도록 할 수 있습니다.
우리는 이 두 가지 규칙을 강제하는 eslint-plugin-react-hooks 라는 ESLint 플러그인을 출시했습니다. 이 플러그인을 프로젝트에 추가할 수 있습니다.
이 플러그인은 Create React App에 기본적으로 포함되어 있습니다.
어떻게 나만의 Hook을 작성할 수 있는지 설명하는 다음 장으로 지금 넘어가도 좋습니다. 이번 장에서는 계속해서 이러한 규칙들의 Binomo에서 초보자를위한 안내서 논리적 근거에 대해 설명할 예정입니다.
이전에 배웠듯이 한 컴포넌트에서 State나 Effect Hook을 여러 개 사용할 수도 있습니다.
그렇다면 React는 Binomo에서 초보자를위한 안내서 어떻게 특정 state가 어떤 useState 호출에 해당하는지 알 수 있을까요? 정답은 React가 Hook이 호출되는 순서에 의존한다는 것입니다. 모든 렌더링에서 Hook의 호출 순서는 같기 때문에 예시가 올바르게 동작할 수 있습니다.
Hook의 호출 순서가 렌더링 간에 동일하다면 React는 지역적인 state를 각 Hook에 연동시킬 수 있습니다. 하지만 Hook을 조건문 안에서(예를 들어 persistForm effect) 호출한다면 어떤 일이 일어날까요?
name !== '' 조건은 첫 번째 렌더링에서 true 기 때문에 Hook은 동작합니다. 하지만 사용자가 그다음 렌더링에서 폼을 초기화하면서 조건을 false 로 만들 Binomo에서 초보자를위한 안내서 겁니다. 렌더링 간에 Hook을 건너뛰기 때문에 Hook 호출 순서는 달라지게 됩니다.
React는 두 번째 useState Hook 호출에 대해 무엇을 반환할지 몰랐습니다. React는 이전 렌더링 때처럼 컴포넌트 내에서 두 번째 Hook 호출이 persistForm effect와 일치할 것이라 예상했지만 그렇지 않았습니다. 그 시점부터 건너뛴 Hook 다음에 호출되는 Hook이 순서가 하나씩 밀리면서 버그를 발생시키게 됩니다.
이것이 컴포넌트 최상위(the top of Binomo에서 초보자를위한 안내서 level)에서 Hook이 호출되어야만 하는 이유입니다. 조건부로 effect를 실행하기를 원한다면, 조건문을 Hook 내부에 넣을 수 있습니다.
제공된 lint 규칙을 활용한다면 이 문제에 대해 걱정할 필요는 없습니다. 그러나 이제 왜 Hook이 이런 식으로 동작하는지 그리고 이 규칙이 어떤 문제를 방지하는지 알고 있습니다.
마침내 Custom Hook을 작성하는 법을 배울 준비가 되었습니다! Custom Hook은 React에서 제공하는 Hook을 추상화된 로직으로 사용할 수 있도록 결합해주고 다른 컴포넌트 사이에서 공통의 상태 관련 로직을 재사용 할 수 있도록 해줍니다.
UNIX Tutorial Two
What Binomo에서 초보자를위한 안내서 we are going to do now, is to take a file stored in an open access area of the file system, and use the cp command to copy it to your unixstuff directory.
First, cd to your unixstuff directory.
Then at the UNIX prompt, type,
Note: Don't forget the dot . at the end. Remember, in UNIX, the dot means the current directory.
The above command means copy the file science.txt to the current directory, keeping the name the same.
(Note: The directory /vol/ee/ee-info/Teaching/Unix/ is an area to which everyone in the school has read and copy access. If you are from outside the University, you can grab a copy of the file here. Use 'File/Save As..' from the menu bar to save it into your unixstuff directory.)
Exercise 2a
Create a backup of your science.txt file by copying it to a file called science.bak
2.2 Moving files
mv (Binomo에서 초보자를위한 안내서 move)
mv file1 file2 moves (or renames) file1 to file2
To move a file from one place to another, use the mv command. This has the effect of moving rather than copying the file, so you end up with only one file rather than two.
It can also be used to rename a file, by moving the file to the same directory, but giving it a different name.
We are now going to move the file science.bak to your backup directory.
First, change directories to your unixstuff directory (can you remember how?). Then, inside Binomo에서 초보자를위한 안내서 the unixstuff directory, type
% mv science.bak backups/.
Type ls and ls backups to see if it has worked.
2.Binomo에서 초보자를위한 안내서 3 Removing files and directories
rm (remove), rmdir (remove directory)
To delete (remove) a file, use the rm command. As an example, we are going to create a copy of the science.txt file then delete it.
Inside your unixstuff directory, type
% cp science.txt tempfile.txt
% ls
% rm tempfile.txt
% ls
You can use the rmdir command to remove a directory (make sure it is empty first). Try to remove the backups directory. You Binomo에서 초보자를위한 안내서 Binomo에서 초보자를위한 안내서 will not be able to since UNIX will not let you remove a non-empty directory.
Exercise 2b
Create a directory called tempstuff using mkdir , then remove it using the rmdir command.
2.4 Displaying the contents of a file on the screen
clear (clear screen)
Before you start the next section, you may like to clear the terminal window of the previous commands so the output of the following commands can be clearly understood.
At the prompt, type
This will clear all text and leave you with the % prompt at the top of the window.
cat (concatenate)
The command cat can be used to display the contents of a file on the screen. Type:
As you can see, the file is longer than than the size of the window, so it scrolls past making it unreadable.
The command less writes the contents of a file onto the screen a page at a time. Type
Press the [space-bar] if you want to see another page, and type [q] if you want to quit reading. As you can see, less is used in preference to cat for long files.
The head command writes the first ten lines of a file to the screen.
First clear the screen then type
% head -5 science.txt
What difference did the -5 do to the head command?
The tail command writes the last ten lines of a file to the screen.
Clear the screen and type
Q. How can you view the last 15 lines of the file?
2.5 Searching the contents of a file
Simple searching using less
Using less , you can search though a text file for a keyword (pattern). For example, to search through science.txt for the word 'science', type
then, still in less , type a forward slash [/] followed by the word to search
As you can see, less finds and highlights the keyword. Type [n] to search for the next occurrence of the word.
grep (don't ask why it is called grep)Binomo에서 초보자를위한 안내서
grep is one of many standard UNIX utilities. It searches files for specified words or patterns. First clear the screen, then type
% grep science science.txt
As you can see, grep has printed out each line containg the word science.
% grep Science science.txt
The grep command is case sensitive; it distinguishes between Science and science.
To ignore upper/lower case distinctions, use the -i option, i.e. type
% grep -i science science.txt
To search for a phrase or pattern, you must enclose it in single quotes (the apostrophe symbol). For example to search for spinning top, type
% grep -i 'spinning top' science.txt
Some of the other options of grep are:
-v display those lines that do NOT match
-n precede each matching line with the line number
-c print only the total count of matched lines
Try some of them and see the different results. Don't forget, you can use more than one option at a time. For example, the number of lines without the words science or Science is
% grep -ivc science science.txt
wc (word count)
A handy little utility is the wc command, short for word count. To do a word count on science.txt, type
Binomo에서 초보자를위한 안내서
3.26.1
3.22.9 LTR
QGIS 사용 시작하기
QGIS 다운로드
설치프로그램 받기
향후 버전을 위한 로드맵 확인하기: QGIS 로드맵
시각적 변경로그에서 최신 기능 살펴보기
QGIS 사용자 안내서 입니다
교육자료에 단계별로 학습할 수 있는 자료
를 제공합니다
QGIS 교육자료를 제공합니다
QGIS는 사용자 개인 정보를 중요시합니다.
따라서 QGIS 애플리케이션 네트워크 연결에 대한 자세한 정보를 제공합니다.
QGIS 간행물
전세계적인 QGIS 커뮤니티 활동에 대해 읽어보세요.
QGIS 블로그
QGIS 관련서적
도움 받기
다음을 통해 사용자 및 개발자들과 접촉하실 수 있습니다.
커뮤니티 지원 채널
상업적 지원
사용자의 회사나 조직에서 QGIS를 사용하실 계획이지만, 상업적인 지원을 받을 수 있는지 걱정되신다면? 여기에 연락해보실 목록이 있습니다.
0 개 댓글