Repository navigation
영어 검색 결과에 대응하는 일본어 문단에서 비교 열기 - #21
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 내용
영어 검색 결과에서 일본어 비교 화면을 열면, 가장 가까운 공통 앵커 또는 대응하는 마크다운 제목을 기준으로 번역 위치를 찾습니다. 기준점부터 빈 줄로 구분한 문단과 문단 안의 줄을 세고, 원문의 여러 줄이 더 짧은 일본어 문단으로 합쳐졌으면 해당 문단의 마지막 줄까지 이동합니다. 대응하는 기준점이 없는 문서는 처음부터 셉니다.
비교 화면은 양쪽 파일의 실제 줄 번호를 표시하고 처음 맞춘 위치 차이를 연동 스크롤에도 적용합니다. 한국어·영어·일본어 README의 비교 안내를 갱신했습니다.
검증
F2를 눌러 영어 67행과 일본어 31행이 나란히 표시되고,Esc로 같은 검색 결과에 돌아오는 것을 확인했습니다.go vet ./...,go test -race ./...,go build -o bin/tgrep ./cmd/tgrepCloses #11