Skip to contentSkip to conversation

qqz: Add another hyperlink to black box in QQA

PATCH In review Akira Yokosawa 2 participants 13 messages Jul 17, 2016 – Jul 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qqz: Add another hyperlink to black box in QQA

From 2a74b30f0a1d036e45c6aa5ef431034c23f790db Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Tue, 12 Jul 2016 20:28:08 +0900
Subject: [PATCH] qqz: Add another hyperlink to black box in QQA

This commit adds another cross-link to the black boxes in QQA. I think this change would meet readers' expectation.

---
 qqz.sty | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
qqz.sty +2 -1
index 12dc85e..0c97df9 100644
@@ -78,7 +78,8 @@
 	\noindent
 	\QuickQHeading{QQA}{QQ}{\QuickQuizAnswerChapter.\thequickquizctrC} #1 ~ \\ }
 
-\newcommand{\QuickA}[1]{\rule{7pt}{7pt}
+\newcommand{\QuickA}[1]{%
+	\hyperref[QQ.\QuickQuizAnswerChapter.\thequickquizctrC]{\rule{7pt}{7pt}}
 	\par\vspace{0.8\baselineskip}
 	\noindent\textbf{Answer:} \\ }
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 9 lines · Akira Yokosawa

From 2a74b30f0a1d036e45c6aa5ef431034c23f790db Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Tue, 12 Jul 2016 20:28:08 +0900
Subject: [PATCH] qqz: Add another hyperlink to black box in QQA

This commit adds another cross-link to the black boxes in QQA. I think this change would meet readers' expectation.

I agree! For reasons that are not clear to me, I had to hand-apply this patch. Might have been a white-space issue, which I did not think to check for...

Please take a look at the patch below to make sure that I did it correctly.

Also, this suggests a possibility: In the quick-quiz answer, suppose that the heading and the black box link (as they do now) to the beginning of the quick-quiz question, but that the white box links to the end (or just after the end) of the quick-quiz question. That way, the reader could choose the return point.

Would that make sense?

Thanx, Paul

------------------------------------------------------------------------

commit 8afdb9c1a55c7cf2300e6812cff58dd0fda4d585

Author: Akira Yokosawa <[email protected]>
Date:   Sun Jul 17 14:54:03 2016 -0700

qqz: Add another hyperlink to black box in QQA

This commit adds a hyperlink from the black box in the quick-quiz answer to the beginning of the corresponding quick-quiz question.

qqz.sty +2 -1
index 12dc85e30116..0c97df92cb50 100644
@@ -78,7 +78,8 @@
 	\noindent
 	\QuickQHeading{QQA}{QQ}{\QuickQuizAnswerChapter.\thequickquizctrC} #1 ~ \\ }
 
-\newcommand{\QuickA}[1]{\rule{7pt}{7pt}
+\newcommand{\QuickA}[1]{%
+	\hyperref[QQ.\QuickQuizAnswerChapter.\thequickquizctrC]{\rule{7pt}{7pt}}
 	\par\vspace{0.8\baselineskip}
 	\noindent\textbf{Answer:} \\ }
 
#2 lore raw
Quoted 9 lines · Paul E. McKenney
Quoted 8 lines · Akira Yokosawa

From 2a74b30f0a1d036e45c6aa5ef431034c23f790db Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Tue, 12 Jul 2016 20:28:08 +0900
Subject: [PATCH] qqz: Add another hyperlink to black box in QQA

This commit adds another cross-link to the black boxes in QQA. I think this change would meet readers' expectation.

Quoted 8 lines
Quoted 1 line

I agree! For reasons that are not clear to me, I had to hand-apply this patch. Might have been a white-space issue, which I did not think to check for...

Please take a look at the patch below to make sure that I did it correctly.

Yes, you did it right. I'm wondering what was wrong on my side.

Quoted 8 lines

Also, this suggests a possibility: In the quick-quiz answer, suppose that the heading and the black box link (as they do now) to the beginning of the quick-quiz question, but that the white box links to the end (or just after the end) of the quick-quiz question. That way, the reader could choose the return point.

Would that make sense?

Well, yes if readers expect the behavior.
But for long answers, there are cases where you can choose only the white boxes in your view. I'm hesitating because of your reaction to the first attempt the other day.

Anyway, I'm going to submit a patch for you to try.

Also we'd also need to update the explanation in the answer of Quick Quiz 1.3 if we actually do the change.

Quoted 33 lines

Thanx, Paul

------------------------------------------------------------------------

commit 8afdb9c1a55c7cf2300e6812cff58dd0fda4d585

Author: Akira Yokosawa <[email protected]>
Date:   Sun Jul 17 14:54:03 2016 -0700

qqz: Add another hyperlink to black box in QQA

This commit adds a hyperlink from the black box in the quick-quiz answer to the beginning of the corresponding quick-quiz question.

qqz.sty +2 -1
index 12dc85e30116..0c97df92cb50 100644
@@ -78,7 +78,8 @@
 	\noindent
 	\QuickQHeading{QQA}{QQ}{\QuickQuizAnswerChapter.\thequickquizctrC} #1 ~ \\ }
 
-\newcommand{\QuickA}[1]{\rule{7pt}{7pt}
+\newcommand{\QuickA}[1]{%
+	\hyperref[QQ.\QuickQuizAnswerChapter.\thequickquizctrC]{\rule{7pt}{7pt}}
 	\par\vspace{0.8\baselineskip}
 	\noindent\textbf{Answer:} \\ }
 
#3 lore raw
Quoted 12 lines · Akira Yokosawa
Quoted 11 lines · Paul E. McKenney
Quoted 9 lines · Akira Yokosawa

From 2a74b30f0a1d036e45c6aa5ef431034c23f790db Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Tue, 12 Jul 2016 20:28:08 +0900
Subject: [PATCH] qqz: Add another hyperlink to black box in QQA

This commit adds another cross-link to the black boxes in QQA. I think this change would meet readers' expectation.

Quoted 8 lines
Quoted 6 lines

I agree! For reasons that are not clear to me, I had to hand-apply this patch. Might have been a white-space issue, which I did not think to check for...

Please take a look at the patch below to make sure that I did it correctly.

Yes, you did it right. I'm wondering what was wrong on my side.

My guess is whitespace. Or maybe the email got mangled along the way.

Quoted 6 lines
Quoted 6 lines

Also, this suggests a possibility: In the quick-quiz answer, suppose that the heading and the black box link (as they do now) to the beginning of the quick-quiz question, but that the white box links to the end (or just after the end) of the quick-quiz question. That way, the reader could choose the return point.

Quoted 6 lines
Quoted 1 line

Would that make sense?

Well, yes if readers expect the behavior.
But for long answers, there are cases where you can choose only the white boxes in your view. I'm hesitating because of your reaction to the first attempt the other day.

All good points!

Quoted 4 lines

Anyway, I'm going to submit a patch for you to try.

Also we'd also need to update the explanation in the answer of Quick Quiz 1.3 if we actually do the change.

Looking forward to it!

Thanx, Paul

Quoted 31 lines
Quoted 30 lines

------------------------------------------------------------------------

commit 8afdb9c1a55c7cf2300e6812cff58dd0fda4d585

Author: Akira Yokosawa <[email protected]>
Date:   Sun Jul 17 14:54:03 2016 -0700

qqz: Add another hyperlink to black box in QQA

This commit adds a hyperlink from the black box in the quick-quiz answer to the beginning of the corresponding quick-quiz question.

qqz.sty +2 -1
index 12dc85e30116..0c97df92cb50 100644
@@ -78,7 +78,8 @@
 	\noindent
 	\QuickQHeading{QQA}{QQ}{\QuickQuizAnswerChapter.\thequickquizctrC} #1 ~ \\ }
 
-\newcommand{\QuickA}[1]{\rule{7pt}{7pt}
+\newcommand{\QuickA}[1]{%
+	\hyperref[QQ.\QuickQuizAnswerChapter.\thequickquizctrC]{\rule{7pt}{7pt}}
 	\par\vspace{0.8\baselineskip}
 	\noindent\textbf{Answer:} \\ }
 
#4 lore raw
Quoted 37 lines · Paul E. McKenney
Quoted 12 lines · Akira Yokosawa
Quoted 11 lines · Paul E. McKenney
Quoted 9 lines · Akira Yokosawa

From 2a74b30f0a1d036e45c6aa5ef431034c23f790db Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Tue, 12 Jul 2016 20:28:08 +0900
Subject: [PATCH] qqz: Add another hyperlink to black box in QQA

This commit adds another cross-link to the black boxes in QQA. I think this change would meet readers' expectation.

Quoted 8 lines
Quoted 6 lines

I agree! For reasons that are not clear to me, I had to hand-apply this patch. Might have been a white-space issue, which I did not think to check for...

Please take a look at the patch below to make sure that I did it correctly.

Yes, you did it right. I'm wondering what was wrong on my side.

My guess is whitespace. Or maybe the email got mangled along the way.

Quoted 6 lines
Quoted 6 lines

Also, this suggests a possibility: In the quick-quiz answer, suppose that the heading and the black box link (as they do now) to the beginning of the quick-quiz question, but that the white box links to the end (or just after the end) of the quick-quiz question. That way, the reader could choose the return point.

Quoted 6 lines
Quoted 1 line

Would that make sense?

Well, yes if readers expect the behavior.
But for long answers, there are cases where you can choose only the white boxes in your view. I'm hesitating because of your reaction to the first attempt the other day.

Quoted 8 lines

All good points!

Quoted 4 lines

Anyway, I'm going to submit a patch for you to try.

Also we'd also need to update the explanation in the answer of Quick Quiz 1.3 if we actually do the change.

Looking forward to it!

So, I'm submitting 2 versions of patch in reply to this mail. 1st one makes "the white box link to the end the quick-quiz question." 2nd one makes "the white box link to just after the end of the quick-quiz question."

Both of them are relative to current master. Please compare them and let me know which one you like. Or just apply the one you choose.

Then I'll compose the additional explanation according to your choice.

Thanks, Akira

Quoted 2 lines

Thanx, Paul

#5 lore raw

PATCH 1/1 qqz: Modify back link target at end of QQA to the end of QQ

From e51d65d2b5e10dcf4bd4f5970010c0cded292f0e Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Mon, 18 Jul 2016 08:41:12 +0900
Subject: [PATCH] qqz: Modify back link target at end of QQA to the end of QQ

This commit modifies the target of back link at the end of QQA (white box) to the end of corresponding QQ in the main text. This change enables you to easily reach the text following a (possibly long) QQ by clicking a white box at the end of the QQA.

---
 qqz.sty | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
qqz.sty +6 -2
index 0c97df9..4505f8c 100644
@@ -20,6 +20,7 @@
 %%          Akira Yokosawa <[email protected]>   # improvement of cross-link
 
 \newcounter{quickquizctr}[chapter]
+\newcounter{quickquizctrE}[chapter]
 \newcounter{quickquizctrC}[section]
 \newcommand*{\theHNum}{\arabic{chapter}.\arabic{quickquizctr}}
 \newcommand{\QuickQuizAnswerChapter}{\textbf{Unknown QuickQAC!!!}}
@@ -33,7 +34,10 @@
 \newcommand{\QuickQuiz}[1]{
 	\refstepcounter{quickquizctr}
 	\QuickQHeading{QQ}{QQA}{\thechapter.\thequickquizctr}}
-\newcommand{\QuickQuizAnswer}[1]{\hyperref[QQA.\thechapter.\thequickquizctr]{\rule{7pt}{7pt}}}
+\newcommand{\QuickQuizAnswer}[1]{%
+	\refstepcounter{quickquizctrE}%
+	\hyperref[QQA.\thechapter.\thequickquizctr]{\rule{7pt}{7pt}}%
+	\label{QQE.\thechapter.\thequickquizctrE}}
 \newcommand{\QuickQuizEnd}{}
 
 % To create a macro referencing the previously defined quick quiz:
@@ -84,7 +88,7 @@
 	\noindent\textbf{Answer:} \\ }
 
 \newcommand{\QuickE}{%
-	\hyperref[QQ.\QuickQuizAnswerChapter.\thequickquizctrC]{\ding{113}}
+	\hyperref[QQE.\QuickQuizAnswerChapter.\thequickquizctrC]{\ding{113}}
 	\vspace{1.5\baselineskip}
 }
 
Signature · 1 line
1.9.1
#6 lore raw

Re: [PATCH] qqz: Modify back link target at end of QQA to the end of QQ

Quoted 11 lines · Akira Yokosawa

From e51d65d2b5e10dcf4bd4f5970010c0cded292f0e Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Mon, 18 Jul 2016 08:41:12 +0900
Subject: [PATCH] qqz: Modify back link target at end of QQA to the end of QQ

This commit modifies the target of back link at the end of QQA (white box) to the end of corresponding QQ in the main text. This change enables you to easily reach the text following a (possibly long) QQ by clicking a white box at the end of the QQA.

Hmmm... This also does not apply. Could you please apply it at your end from email and/or compare it to your original? I am beginning to suspect that the patch got corrupted in transit.

Thnax, Paul

Quoted 36 lines
---
 qqz.sty | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
qqz.sty +6 -2
index 0c97df9..4505f8c 100644
@@ -20,6 +20,7 @@
 %%          Akira Yokosawa <[email protected]>   # improvement of cross-link
 \newcounter{quickquizctr}[chapter]
+\newcounter{quickquizctrE}[chapter]
 \newcounter{quickquizctrC}[section]
 \newcommand*{\theHNum}{\arabic{chapter}.\arabic{quickquizctr}}
 \newcommand{\QuickQuizAnswerChapter}{\textbf{Unknown QuickQAC!!!}}
@@ -33,7 +34,10 @@
 \newcommand{\QuickQuiz}[1]{
 	\refstepcounter{quickquizctr}
 	\QuickQHeading{QQ}{QQA}{\thechapter.\thequickquizctr}}
-\newcommand{\QuickQuizAnswer}[1]{\hyperref[QQA.\thechapter.\thequickquizctr]{\rule{7pt}{7pt}}}
+\newcommand{\QuickQuizAnswer}[1]{%
+	\refstepcounter{quickquizctrE}%
+	\hyperref[QQA.\thechapter.\thequickquizctr]{\rule{7pt}{7pt}}%
+	\label{QQE.\thechapter.\thequickquizctrE}}
 \newcommand{\QuickQuizEnd}{}
 % To create a macro referencing the previously defined quick quiz:
@@ -84,7 +88,7 @@
 	\noindent\textbf{Answer:} \\ }
 \newcommand{\QuickE}{%
-	\hyperref[QQ.\QuickQuizAnswerChapter.\thequickquizctrC]{\ding{113}}
+	\hyperref[QQE.\QuickQuizAnswerChapter.\thequickquizctrC]{\ding{113}}
 	\vspace{1.5\baselineskip}
 }
Signature · 1 line
1.9.1
#7 lore raw

Re: [PATCH] qqz: Modify back link target at end of QQA to the end of QQ

Quoted 11 lines · Paul E. McKenney
Quoted 10 lines · Akira Yokosawa

From e51d65d2b5e10dcf4bd4f5970010c0cded292f0e Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Mon, 18 Jul 2016 08:41:12 +0900
Subject: [PATCH] qqz: Modify back link target at end of QQA to the end of QQ

This commit modifies the target of back link at the end of QQA (white box) to the end of corresponding QQ in the main text. This change enables you to easily reach the text following a (possibly long) QQ by clicking a white box at the end of the QQA.

Quoted 5 lines
Quoted 1 line

Hmmm... This also does not apply. Could you please apply it at your end from email and/or compare it to your original? I am beginning to suspect that the patch got corrupted in transit.

It turns out that the config setting of my Thunderbird was modified unknowingly.
"mailnews.send_plaintext_flowed" should be "false," but it returned to its default "true."

After I modified the setting, I tested sending the patch to myself and it applies.
So I'm sending it to you and the list. Sorry to have bothered you.

Thanks, Akira

Quoted 3 lines

Thnax, Paul

#8 lore raw

Re: [PATCH] qqz: Modify back link target at end of QQA to the end of QQ

From e51d65d2b5e10dcf4bd4f5970010c0cded292f0e Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Mon, 18 Jul 2016 08:41:12 +0900
Subject: [PATCH] qqz: Modify back link target at end of QQA to the end of QQ

This commit modifies the target of back link at the end of QQA (white box) to the end of corresponding QQ in the main text. This change enables you to easily reach the text following a (possibly long) QQ by clicking a white box at the end of the QQA.

---
 qqz.sty | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
qqz.sty +6 -2
index 0c97df9..4505f8c 100644
@@ -20,6 +20,7 @@
 %%          Akira Yokosawa <[email protected]>   # improvement of cross-link
 
 \newcounter{quickquizctr}[chapter]
+\newcounter{quickquizctrE}[chapter]
 \newcounter{quickquizctrC}[section]
 \newcommand*{\theHNum}{\arabic{chapter}.\arabic{quickquizctr}}
 \newcommand{\QuickQuizAnswerChapter}{\textbf{Unknown QuickQAC!!!}}
@@ -33,7 +34,10 @@
 \newcommand{\QuickQuiz}[1]{
 	\refstepcounter{quickquizctr}
 	\QuickQHeading{QQ}{QQA}{\thechapter.\thequickquizctr}}
-\newcommand{\QuickQuizAnswer}[1]{\hyperref[QQA.\thechapter.\thequickquizctr]{\rule{7pt}{7pt}}}
+\newcommand{\QuickQuizAnswer}[1]{%
+	\refstepcounter{quickquizctrE}%
+	\hyperref[QQA.\thechapter.\thequickquizctr]{\rule{7pt}{7pt}}%
+	\label{QQE.\thechapter.\thequickquizctrE}}
 \newcommand{\QuickQuizEnd}{}
 
 % To create a macro referencing the previously defined quick quiz:
@@ -84,7 +88,7 @@
 	\noindent\textbf{Answer:} \\ }
 
 \newcommand{\QuickE}{%
-	\hyperref[QQ.\QuickQuizAnswerChapter.\thequickquizctrC]{\ding{113}}
+	\hyperref[QQE.\QuickQuizAnswerChapter.\thequickquizctrC]{\ding{113}}
 	\vspace{1.5\baselineskip}
 }
 
Signature · 1 line
1.9.1
#9 lore raw

Re: [PATCH] qqz: Modify back link target at end of QQA to the end of QQ

Quoted 11 lines · Akira Yokosawa
Quoted 1 line

From e51d65d2b5e10dcf4bd4f5970010c0cded292f0e Mon Sep 17 00:00:00 2001

From: Akira Yokosawa <[email protected]>
Date: Mon, 18 Jul 2016 08:41:12 +0900
Subject: [PATCH] qqz: Modify back link target at end of QQA to the end of QQ

This commit modifies the target of back link at the end of QQA (white box) to the end of corresponding QQ in the main text. This change enables you to easily reach the text following a (possibly long) QQ by clicking a white box at the end of the QQA.

Much better! Queued and pushed, thank you!

Thanx, Paul

Quoted 41 lines
---
 qqz.sty | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
qqz.sty +6 -2
index 0c97df9..4505f8c 100644
@@ -20,6 +20,7 @@
 %%          Akira Yokosawa <[email protected]>   # improvement of cross-link
 
 \newcounter{quickquizctr}[chapter]
+\newcounter{quickquizctrE}[chapter]
 \newcounter{quickquizctrC}[section]
 \newcommand*{\theHNum}{\arabic{chapter}.\arabic{quickquizctr}}
 \newcommand{\QuickQuizAnswerChapter}{\textbf{Unknown QuickQAC!!!}}
@@ -33,7 +34,10 @@
 \newcommand{\QuickQuiz}[1]{
 	\refstepcounter{quickquizctr}
 	\QuickQHeading{QQ}{QQA}{\thechapter.\thequickquizctr}}
-\newcommand{\QuickQuizAnswer}[1]{\hyperref[QQA.\thechapter.\thequickquizctr]{\rule{7pt}{7pt}}}
+\newcommand{\QuickQuizAnswer}[1]{%
+	\refstepcounter{quickquizctrE}%
+	\hyperref[QQA.\thechapter.\thequickquizctr]{\rule{7pt}{7pt}}%
+	\label{QQE.\thechapter.\thequickquizctrE}}
 \newcommand{\QuickQuizEnd}{}
 
 % To create a macro referencing the previously defined quick quiz:
@@ -84,7 +88,7 @@
 	\noindent\textbf{Answer:} \\ }
 
 \newcommand{\QuickE}{%
-	\hyperref[QQ.\QuickQuizAnswerChapter.\thequickquizctrC]{\ding{113}}
+	\hyperref[QQE.\QuickQuizAnswerChapter.\thequickquizctrC]{\ding{113}}
 	\vspace{1.5\baselineskip}
 }
 
Signature · 1 line
1.9.1
#10 lore raw

PATCH 1/1 qqz: Modify back link target at end of QQA to just after the end of QQ

In reply to Akira Yokosawa

From 2441e281a03d846b9e326c02f21ba44754a3d1bc Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Mon, 18 Jul 2016 08:28:00 +0900
Subject: [PATCH] qqz: Modify back link target at end of QQA to just after the
end of QQ

This commit modifies the target of back link at the end of QQA (white box) to just after the end of corresponding QQ in the main text.
This change enables you to easily reach the text following a (possibly long) QQ by clicking a white box at the end of the QQA.

---
 qqz.sty | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
qqz.sty +7 -2
index 0c97df9..6623d00 100644
@@ -20,6 +20,7 @@
 %%          Akira Yokosawa <[email protected]>   # improvement of cross-link
 
 \newcounter{quickquizctr}[chapter]
+\newcounter{quickquizctrE}[chapter]
 \newcounter{quickquizctrC}[section]
 \newcommand*{\theHNum}{\arabic{chapter}.\arabic{quickquizctr}}
 \newcommand{\QuickQuizAnswerChapter}{\textbf{Unknown QuickQAC!!!}}
@@ -33,7 +34,11 @@
 \newcommand{\QuickQuiz}[1]{
 	\refstepcounter{quickquizctr}
 	\QuickQHeading{QQ}{QQA}{\thechapter.\thequickquizctr}}
-\newcommand{\QuickQuizAnswer}[1]{\hyperref[QQA.\thechapter.\thequickquizctr]{\rule{7pt}{7pt}}}
+\newcommand{\QuickQuizAnswer}[1]{%
+	\hyperref[QQA.\thechapter.\thequickquizctr]{\rule{7pt}{7pt}}
+
+	\refstepcounter{quickquizctrE}%
+	\label{QQE.\thechapter.\thequickquizctrE}}
 \newcommand{\QuickQuizEnd}{}
 
 % To create a macro referencing the previously defined quick quiz:
@@ -84,7 +89,7 @@
 	\noindent\textbf{Answer:} \\ }
 
 \newcommand{\QuickE}{%
-	\hyperref[QQ.\QuickQuizAnswerChapter.\thequickquizctrC]{\ding{113}}
+	\hyperref[QQE.\QuickQuizAnswerChapter.\thequickquizctrC]{\ding{113}}
 	\vspace{1.5\baselineskip}
 }
 
Signature · 1 line
1.9.1
#11 lore raw
In reply to Akira Yokosawa
Quoted 52 lines · Akira Yokosawa
Quoted 37 lines · Paul E. McKenney
Quoted 12 lines · Akira Yokosawa
Quoted 11 lines · Paul E. McKenney
Quoted 9 lines · Akira Yokosawa

From 2a74b30f0a1d036e45c6aa5ef431034c23f790db Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Tue, 12 Jul 2016 20:28:08 +0900
Subject: [PATCH] qqz: Add another hyperlink to black box in QQA

This commit adds another cross-link to the black boxes in QQA. I think this change would meet readers' expectation.

Quoted 8 lines
Quoted 6 lines

I agree! For reasons that are not clear to me, I had to hand-apply this patch. Might have been a white-space issue, which I did not think to check for...

Please take a look at the patch below to make sure that I did it correctly.

Yes, you did it right. I'm wondering what was wrong on my side.

My guess is whitespace. Or maybe the email got mangled along the way.

Quoted 6 lines
Quoted 6 lines

Also, this suggests a possibility: In the quick-quiz answer, suppose that the heading and the black box link (as they do now) to the beginning of the quick-quiz question, but that the white box links to the end (or just after the end) of the quick-quiz question. That way, the reader could choose the return point.

Quoted 6 lines
Quoted 1 line

Would that make sense?

Well, yes if readers expect the behavior.
But for long answers, there are cases where you can choose only the white boxes in your view. I'm hesitating because of your reaction to the first attempt the other day.

Quoted 8 lines

All good points!

Quoted 4 lines

Anyway, I'm going to submit a patch for you to try.

Also we'd also need to update the explanation in the answer of Quick Quiz 1.3 if we actually do the change.

Looking forward to it!

So, I'm submitting 2 versions of patch in reply to this mail. 1st one makes "the white box link to the end the quick-quiz question." 2nd one makes "the white box link to just after the end of the quick-quiz question."

Quoted 5 lines

Both of them are relative to current master. Please compare them and let me know which one you like. Or just apply the one you choose.

Then I'll compose the additional explanation according to your choice.

Before I do that -- which of the two do you prefer?

Thanx, Paul

#12 lore raw
Quoted 53 lines · Paul E. McKenney
Quoted 52 lines · Akira Yokosawa
Quoted 37 lines · Paul E. McKenney
Quoted 12 lines · Akira Yokosawa
Quoted 11 lines · Paul E. McKenney
Quoted 9 lines · Akira Yokosawa

From 2a74b30f0a1d036e45c6aa5ef431034c23f790db Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Tue, 12 Jul 2016 20:28:08 +0900
Subject: [PATCH] qqz: Add another hyperlink to black box in QQA

This commit adds another cross-link to the black boxes in QQA. I think this change would meet readers' expectation.

Quoted 8 lines
Quoted 6 lines

I agree! For reasons that are not clear to me, I had to hand-apply this patch. Might have been a white-space issue, which I did not think to check for...

Please take a look at the patch below to make sure that I did it correctly.

Yes, you did it right. I'm wondering what was wrong on my side.

My guess is whitespace. Or maybe the email got mangled along the way.

Quoted 6 lines
Quoted 6 lines

Also, this suggests a possibility: In the quick-quiz answer, suppose that the heading and the black box link (as they do now) to the beginning of the quick-quiz question, but that the white box links to the end (or just after the end) of the quick-quiz question. That way, the reader could choose the return point.

Quoted 6 lines
Quoted 1 line

Would that make sense?

Well, yes if readers expect the behavior.
But for long answers, there are cases where you can choose only the white boxes in your view. I'm hesitating because of your reaction to the first attempt the other day.

Quoted 8 lines

All good points!

Quoted 4 lines

Anyway, I'm going to submit a patch for you to try.

Also we'd also need to update the explanation in the answer of Quick Quiz 1.3 if we actually do the change.

Looking forward to it!

So, I'm submitting 2 versions of patch in reply to this mail. 1st one makes "the white box link to the end the quick-quiz question." 2nd one makes "the white box link to just after the end of the quick-quiz question."

Quoted 7 lines
Quoted 5 lines

Both of them are relative to current master. Please compare them and let me know which one you like. Or just apply the one you choose.

Then I'll compose the additional explanation according to your choice.

Before I do that -- which of the two do you prefer?

The 1st one.
Its behavior is identical to my first attempt.
Clicking a white box will bring you to the black box of corresponding question, so you can see you are at the end of the question.

2nd one's white box will bring you to the beginning of the next paragraph of the question, so you might feel you've lost sense of where you are.
As I'm trying it myself, especially in 2-column layout, 2nd one seems too aggressive. I should have tested more before submitting.

So, please try the 1st one. And as I said before, it may take a while for you to get used to it.

And it's okay with me if you decide to keep the behavior as it is.

Thanks, Akira

Quoted 4 lines

Thanx, Paul