#7 Add automatic linking from sessions to speakers

Closed
opened 8 years ago by DeletedUser · 2 comments

Just as the bios generator automatically creates IDs for speakers based on their last names, I'd like the schedule generator to automatically link people's names to their bios. I recognize that it's probably overkill to actually have the schedule template somehow read the speakers source markdown file to check the speaker exists, so I think that it should just create links with the assumption that there is a file called speakers.html in the same directory as the generated sessions file, and that the speaker exists in the file.

It can determine the ID to put in the URL based on the speaker's name, using the same algorithm that the speakers template uses to generate the ID. However, there is a possibility for mistakes if there are two speakers with the same last name that appear in different orders in the two documents.

Because of this, I think that if we go with this solution, we should add the ability to write some kind of code into the sessions source markdown file to override the speaker ID that's created by the sessions template for a given speaker. Since we currently don't have any speakers with the same name, this override capability can come after the automatic link generation is implemented. (Also, if you can think of a better way to do this, that's awesome -- I just wanted to clarify my thoughts).

Just as the bios generator automatically creates IDs for speakers based on their last names, I'd like the schedule generator to automatically link people's names to their bios. I recognize that it's probably overkill to actually have the schedule template somehow read the speakers source markdown file to check the speaker exists, so I think that it should just create links with the assumption that there is a file called speakers.html in the same directory as the generated sessions file, and that the speaker exists in the file. It can determine the ID to put in the URL based on the speaker's name, using the same algorithm that the speakers template uses to generate the ID. However, there is a possibility for mistakes if there are two speakers with the same last name that appear in different orders in the two documents. Because of this, I think that if we go with this solution, we should add the ability to write some kind of code into the sessions source markdown file to override the speaker ID that's created by the sessions template for a given speaker. Since we currently don't have any speakers with the same name, this override capability can come after the automatic link generation is implemented. (Also, if you can think of a better way to do this, that's awesome -- I just wanted to clarify my thoughts).
Deleted User commented 8 years ago
Poster

Hm, I just noticed that the person creating the program has started putting speaker's organizational affiliations into the session descriptions, in addition to their names. Keep that in mind. We could probably remove the affiliations in the session descriptions if need be, but it seems like a good idea to keep them.

Hm, I just noticed that the person creating the program has started putting speaker's organizational affiliations into the session descriptions, in addition to their names. Keep that in mind. We could probably remove the affiliations in the session descriptions if need be, but it seems like a good idea to keep them.
siddharth ravikumar referenced this issue from a commit 8 years ago
Autolinking of speakers in sessions page ready. If "John Hacker" is the speaker that has to be autolinked in the sessions MD file; the markup to autolink is [John Hacker](). [John Hacker]() -> John Hacker, if id for "John Hacker" is available in the `speaker.ids` file[1]. [1]: The `speakers.ids` file is automatically written to the disk (in the current working directory) when the speakers' bio page is generated. List of speakers that are autolinked but don't have an id, are written to the `speakers.noid` file when the sessions page is generated. Addresses issue #7.

The script can auto-link speakers in the schedule MD. See https://pypi.python.org/pypi/lpschedule-generator#auto-linking-speaker-names

The script can auto-link speakers in the schedule MD. See https://pypi.python.org/pypi/lpschedule-generator#auto-linking-speaker-names
Sign in to join this conversation.
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.